Skip to main content

Jupyter kernel for OpenSCAD

Project description

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 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

Further Information

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jupyter-openscad-kernel-1.0.13.tar.gz (24.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jupyter_openscad_kernel-1.0.13-py3-none-any.whl (43.2 kB view details)

Uploaded Python 3

File details

Details for the file jupyter-openscad-kernel-1.0.13.tar.gz.

File metadata

  • Download URL: jupyter-openscad-kernel-1.0.13.tar.gz
  • Upload date:
  • Size: 24.2 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for jupyter-openscad-kernel-1.0.13.tar.gz
Algorithm Hash digest
SHA256 063260e02f8452dd1b3bd3f80dbf8efec2140b7cac7482308c626f01dbc4a4f2
MD5 ebfa09a432c975522c28ddd8e04fedae
BLAKE2b-256 4073d40935c4121cf1bbe54db0b0e088ec94004fec1d5f1dd01eeb385085e127

See more details on using hashes here.

File details

Details for the file jupyter_openscad_kernel-1.0.13-py3-none-any.whl.

File metadata

  • Download URL: jupyter_openscad_kernel-1.0.13-py3-none-any.whl
  • Upload date:
  • Size: 43.2 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for jupyter_openscad_kernel-1.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 4f7ed110a9baea9b41f01904e4e009f63541719c72c1e59bb3f872aeeea8b5a8
MD5 e06d20c2678d6cde54b2636799574f3f
BLAKE2b-256 d9e5e83ed8497d5e33ac9f6084bf00650a5fd9a07493ede18f59dadf67124b80

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page