![]() You can also delete the kernel: $ blender_notebook removeĪre you sure to delete ~/. $ jupyter kernelspec listīlender ~/.local/share/jupyter/kernels/blender Timestamps and descriptions below0:00 - In. If you launch jupyter notebook as usual, a new kernel named blender should be available. Edit mode specific selection tools in Blender: 1, 2 and 3 on the number row. None of the methods from older versions seem to work. I have spent a couple of days trying to install scipy into blender python on the latest release (3.3.1). Saving files to ~/.local/share/jupyter/kernels/blender The recipe for installing 3rd party libraries (like scipy) seems to be changing from one release to another. Then, run the blender_notebook CLI (replace "snap/bin/blender" with your blender executable path): $ blender_notebook install -blender-exec="/snap/bin/blender" On Windows, the blender executable path is usually: C:\Program Files\Blender Foundation\Blender 2.82\blender.exe Essentially: delete the python folder of the install, and Blender looks for a system version, where on some systems you need to supply the path yourself as: PYTHONPATH/usr/lib/python3.7. As mentioned here, the python version (major and minor) must match the one that Blender comes with. On MacOS, the blender executable path is usually: /Applications/Blender.app/Contents/MacOS/Blender I found lots of material on how to make Blender use the system version of python. ![]() In my case, blender is installed from snap. If blender in installed by a package manager, the easiest way to find the executable path is: $ which blender I found lots of material on how to make Blender use the system version of python. ![]() It can also be installed from source: $ python -m pip install -e. The easiest way to install blender_notebook is via pip: $ python -m pip install blender_notebook ![]() Therefore, it's highly recommended to use exactly the same python version as your blender. In order to make ipykernel and other pip packages accessible to Blender, the site-packages directory of the python interpreter executing blender_notebook will be added to Blender's python path. As of Blender 2.82, python 3.7 is packaged. A simple command line tool to wrap blender 2.8 as a jupyter kernel.īlender's python API requires its embedded python interpreter.
0 Comments
Leave a Reply. |