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

We try to install the kernel specification automatically. If the kernel does not appear you can try to execute the following command

python -m iopenscad setup

Installation from source

git clone https://github.com/pschatzmann/jupyter-openscad-kernel.git
cd openscad-kernel
pip 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

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

Further Information

Metadata

Release files for pschatzmann-test-001 1.0.9

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

Source distribution (sdist)

Source distribution for pschatzmann-test-001 1.0.9
File Size Uploaded Provenance
pschatzmann-test-001-1.0.9.tar.gz 24.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pschatzmann-test-001 1.0.9
File Interpreter ABI Platform
pschatzmann_test_001-1.0.9-py3-none-any.whl Python 3 none any Details

Total release size: 54.1 kB

Release files / pschatzmann-test-001-1.0.9.tar.gz

Download URL pschatzmann-test-001-1.0.9.tar.gz
Size 24.9 kB
Tags Source
SHA-256 checksum
How to use checksums
aa7e23ef033e4f0525d49f31053ebb6b0c142e2d9c064917ac2741447698507b
BLAKE2b-256 checksum
How to use checksums
c37b858ba52f538303fbff8fcaf312ac8eef2f2ee53c6e31d239b6a0dafa486a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

Release files / pschatzmann_test_001-1.0.9-py3-none-any.whl

Download URL pschatzmann_test_001-1.0.9-py3-none-any.whl
Size 29.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
98271ad5123ee5d7c42e528d1629d81ac7ab096625e74467eee2f4e70b27c8bd
BLAKE2b-256 checksum
How to use checksums
7ccd4d95ba8f3865ade20fdb46462a6bd8bab135fed79da97e6ffc9051e3a16e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

Security for pschatzmann-test-001 1.0.9

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