Instruction for installing new kernel

Added instruction for installing Jupyter/Ipython Kernel
This commit is contained in:
M Clark
2016-03-19 10:09:45 +08:00
parent 6a96f80d20
commit c402db2633
+19
View File
@@ -18,6 +18,25 @@ Start an IPython Notebook:
Start a Qt Console:
./blender_ipython.py qtconsole
Installing Jupyter/Ipython Kernel
------------
- [Find the jupyter kernel path for your system](http://jupyter-client.readthedocs.org/en/latest/kernels.html) and create a blender directory. On unix this is `~/.local/share/jupyter/kernels`
- Place a kernel.json file in the directory `~/.local/share/jupyter/kernels/blender/kernel.json`
- The contents of the json are as follows, where you replace "PATH_TO_SCRIPT" with the actual path
```json
{
"argv": ["PATH_TO_SCRIPT/blender_ipython.py", "kernel",
"-f", "{connection_file}"],
"display_name": "Blender env",
"language": "python"
}
```
- now start the notebook normally (`jupyter notebook`) and you will see a new kernel under "new" called blender.
- make a new notebook using this kernel and test it by running `import bpy`
- you are now set up
Dependencies
------------