GithubHelp home page GithubHelp logo

alentraca / blender_notebook Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cheng-chi/blender_notebook

0.0 0.0 0.0 20 KB

A simple command line tool to wrap blender 2.8+ as a jupyter kernel.

License: MIT License

Python 100.00%

blender_notebook's Introduction

Blender Notebook

A simple command line tool to wrap blender 2.8+ as a jupyter kernel.

Blender's python API requires its embedded python interpreter. As of Blender 2.82, python 3.7 is packaged. 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. Therefore, it's highly recommended to use exactly the same python version as your blender.

Installation

The easiest way to install blender_notebook is via pip:

$ python -m pip install blender_notebook

It can also be installed from source:

$ python -m pip install -e .

Usage

If blender in installed by a package manager, the easiest way to find the executable path is:

$ which blender
/snap/bin/blender

In my case, blender is installed from snap.

On MacOS, the blender executable path is usually:

/Applications/Blender.app/Contents/MacOS/Blender

On Windows, the blender executable path is usually:

C:\Program Files\Blender Foundation\Blender 2.82\blender.exe

Then, run the blender_notebook CLI (replace "snap/bin/blender" with your blender executable path):

$ blender_notebook install --blender-exec="/snap/bin/blender"
Saving files to ~/.local/share/jupyter/kernels/blender

If you launch jupyter notebook as usual, a new kernel named blender should be available.

$ jupyter kernelspec list
Available kernels:
blender              ~/.local/share/jupyter/kernels/blender

$ jupyter notebook

You can also delete the kernel:

$ blender_notebook remove
Are you sure to delete ~/.local/share/jupyter/kernels/blender ? [y/N]: y
blender jupyter kernel is removed!

blender_notebook's People

Contributors

cheng-chi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.