mirror of
https://github.com/wassname/blender_ipython.git
synced 2026-09-09 11:18:46 +08:00
Instruction for installing new kernel
Added instruction for installing Jupyter/Ipython Kernel
This commit is contained in:
@@ -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
|
||||
------------
|
||||
|
||||
Reference in New Issue
Block a user