[Bf-committers] [GSOC17][Proposal] Jupyter Kernel addon for Blender

andij.cr at gmail.com andij.cr at gmail.com
Thu Mar 30 13:35:14 CEST 2017


yes, i think that supporting both the behaviour "launch a new blender
instance from jupyter" and "connect jupyter to this already running blender
istance" is one of my goals.

the first one is the easiest to achieve, while the second one can be built
on this.

It seems that the core of the blender kernel will have to face mostly
proper packaging issues, as it must well behave in various enviroments.
So, maybe it is possible to think of additional useful feature, like
in-notebook preview of main window?

> Here is one implementation of such an asyncio based kernel:
> https://github.com/takluyver/aiokernel/blob/master/aiokernel.py
<https://github.com/takluyver/aiokernel/blob/master/aiokernel.py>

thank you for this find, it will be usefull for sure

2017-03-30 11:24 GMT+02:00 Andreas Klostermann <andreasklostermann at gmail.com
>:

> As a starter this documentation may help:
> http://ipython.readthedocs.io/en/stable/development/index.html
>
> I'm not involved in Blender development, so you shouldn't take my views as
> anything official. But my opinion is that a Jupyter integration for Blender
> would be useful for users who write Python addons, but don't want to
> compile the sources themselves. Using Blender as a Python module would
> require compilation. Implementing the kernel protocol through asyncio would
> mean it can be run from any blender binary distribution. The Jupyter
> notebook server would then have a kernel config which starts Blender with a
> script, this script installs asyncio and listens on the specified port.
> Blender could be run with or without GUI.
>
> Here is one implementation of such an asyncio based kernel:
> https://github.com/takluyver/aiokernel/blob/master/aiokernel.py
>
> The problem with that is the zeromq protocol implementations for asyncio.
> The former code uses something called "zentedeschia", and there is also
> aiomzmq and I think pyzmq has another one. But they all depend on pyzmq
> which in turn requires compiled extensions. I haven't been able to load
> pyzmq into Blender at all, so far. Other than this little import, there
> should be nothing in the way of Jupyter/Blender integration.
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> https://lists.blender.org/mailman/listinfo/bf-committers
>



-- 
Andrea Barbadoro goo.gl/abpvJ  _
Mail: andij.cr at gmail.com _
Mail: barbadoro.andrea at gmail.com _
Mobile: +39 338 134 5403 _


More information about the Bf-committers mailing list