Skip to main content

OpenSCAD Kernel for Jupyter

I was missing a Jupyter Kernel for OpenSCAD. So I took up the challenge and here is the result.

Any regular text in a cell is added to the overall OpenSCAD code buffer. This allows you to build up an OpenSCAD model in multiple steps using Jupyter cells and document the design along the way.

Preconditions

  • Jupyter or Jupyterlab should have been installed
  • Please make sure that OpenSCAD has been installed on your system (e.g. with apt install openscad) and that it can be called on the command line:
openscad -v

diplays the version. E.g. 2019.12.20

Installation

pip install jupyter-openscad-kernel
python -m iopenscad.install

Installation from source

git clone https://github.com/pschatzmann/jupyter-openscad-kernel.git
cd jupyter-openscad-kernel
pip install .
python -m iopenscad.install

Optional Steps

If you want to be able to display stl files you need to install a mime renderer for Jupyter. E.g

jupyter labextension install jupyterlab-viewer-3d

If you want to have syntax highlighting for OpenSCAD:

jupyter labextension install jupyterlab-openscad-syntax-highlighting

On linux, if you want to run openscad in a headless environment (e.g. Docker) you need to install xvfb

apt install -y xvfb

Now you can launch your kernel my calling

jupyter lab

or

jupyter workspace

Versions

  • 1.0 Initial Version
  • 1.0.1 Additional syntax checking; Publish to pypi
  • 1.0.13 Error corrections for parser and installer, support for %use
  • 1.0.14 Cleanup and corrections for spelling mistakes, Upgrade node and setuptools release in Dockerfile

Further Information

Metadata

Release files for jupyter-openscad-kernel 1.0.14

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jupyter-openscad-kernel 1.0.14
File Size Uploaded Provenance
jupyter-openscad-kernel-1.0.14.tar.gz 24.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for jupyter-openscad-kernel 1.0.14
File Interpreter ABI Platform
jupyter_openscad_kernel-1.0.14-py3-none-any.whl Python 3 none any Details

Total release size: 49.4 kB

Release files / jupyter-openscad-kernel-1.0.14.tar.gz

Download URL jupyter-openscad-kernel-1.0.14.tar.gz
Size 24.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8be55ba63fefca43f8973674b943b87f2a7bc9c12bb86c9546b0077afb5a179f
BLAKE2b-256 checksum
How to use checksums
ced06c43406cde7d049acf96239574317cc954daf71d075313fdc43d517d1b01
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2

Release files / jupyter_openscad_kernel-1.0.14-py3-none-any.whl

Download URL jupyter_openscad_kernel-1.0.14-py3-none-any.whl
Size 24.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b6205607cb57f693e5a69423bc316c70abc6cb228cb3abeeb8875c3b095ff6a1
BLAKE2b-256 checksum
How to use checksums
02858d8673745382d907fb53068c1be691e810d8f05d01982ed115dbb3d3b640
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2

Security for jupyter-openscad-kernel 1.0.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page