Conversation
|
Now I've spent some time going through everything, we could probably actually drop the need for any |
|
This is good to see! |
|
Another thought: we could add the |
isn't it already possible that all python packages can be imported directly inside of a jupyter notebook? The pull request looks good to me! One small remark for copying files: Pathlib has a # copy python files
kernel_py_dst = kernel_install_path.joinpath(kernel_py_path.name)
kernel_launcher_py_dst = kernel_install_path.joinpath(kernel_launcher_py_path.name)
shutil.copyfile(kernel_py_path, kernel_py_dst)
shutil.copyfile(kernel_launcher_py_path, kernel_launcher_py_dst)
kernel_launcher_py_dst.chmod(0o755)from pathlib import Path
# Define source paths
source_path = Path(__file__).resolve().parent / "my_example_path"
src0 = source_path / "config.yaml"
src1 = source_path / "launcher.py"
# Define destination path
dest_path = Path.cwd() # Use current working directory as the destination
# Destination paths
dest0 = dest_path / "config.yaml"
dest1 = dest_path / "launcher.py"
# Copy files to destination
dest0.write_bytes(src0.read_bytes())
dest1.write_bytes(src1.read_bytes()) |



Update for use with the new Extensions system / plaform, to potentially allow users to install from within Blender.
Currently rough / a work in progress, and currently doesn't work on Windows as some
.whlresolving is failing.Installing development version of add-on
To install development build, use the
Blender VSCodeextension, open VSCode in the repo folder. Before building and launching Blender, get Blender to run the.buildscript:This will download the required
.whlfiles in thenotebookconnector/wheelsand also setup thenotebookconnector/blender_manifest.py.After running that build script you can do the
Blender: Build and Runon your installation of Blender and it should install and appear in the list of add-ons. Once there you can use theAppend/Removebuttons to register Blender as a usable kernel for Jupyter.Importing Molecular Nodes
Importing installed add-ons import python scripts has changed slightly. Add-ons need to be installed from the specific repo that they have been installed from. If you have download / installed MN from within Blender, it is in the
user_defaultrepo so you can import it like this:CleanShot.2024-09-24.at.18.50.24.mp4