CQNB - CadQuery Jupyter Notebook
A Jupyter extension for the CadQuery library.
NOTE: this extension is still under development. As such, install methods are still manual, and functionality is subject to change.
This extension has the following requirements:
- Jupyter Notebook NOTE: Install for Python2.7, as CadQuery only works on 2.7
Currently cqnb is used by directly importing the module into your notebook. As such, the installation process is:
cd into your desired directory. Must be accessible by your Jupyter server.
download cqjupyter.py or clone this repo
git clone https://github.com/RustyVermeer/cqnb.git
Import cqjupyter into your notebook.
import sys sys.path.append('/path/to/cqnb/script') from cqjuypter import *
ATTN: You must place these imports in a cell separate from your cadquery script. This is because the CadQuery interface runs into trouble when it reads the line 'import cqjupyter'.
If you wish to avoid having to import the script in your notebook, you can add a short script to your startup folder that contains the above import statements.
It's a simple process and you can read about it here.