A JupyterLab extension.
Project description
jupytercad_salome
JupyterCAD-Salome
is an extension for JupyterCAD which enables users to generate meshes from their creations in JupyterCAD, leveraging the powerful meshing capabilities of Salome, a leading open-source platform for numerical simulation.
JupyterCAD-Salome
is currently in active development.
Creating a mesh with JupyterCAD in combination with JupyterCAD-Salome
As you can see in the video above, JupyterCAD-Salome
will add a new button to the JupyterCAD toolbar allowing to generate a mesh from the currently selected object in the JupyterCAD viewer.
Try it live
A deployment is published for you to give it a try: https://trungleduc-jupytercad.hf.space/lab
This demo is entirely collaborative, which means anybody getting to this link will see what you do and be able to collaborate with you.
You can make your own deployment on HuggingFace pressing the "⋮" button on the top-right corner of the page, then "Duplicate this Space"
Local Install
- Install Salome from https://www.salome-platform.org/?page_id=2430
- To install the extension, execute:
pip install jupyterlab pip install --pre jupytercad jupytercad-salome
Then you can either start JupyterLab or JupyterCAD:
jupyter lab
# OR
jupyter cad
Implementation
JupyterCAD-Salome
consists of two components:
- A
jupyter-server
endpoint which is ready to compute the mesh upon client demand. This endpoint is defined using an OpenAPI spec. Users are not bound to the provided jupyter-server endpoint,JupyterCAD-Salome
can connect to any server implementing the OpenAPI spec.
[!NOTE] To use
JupyterCAD-Salome
with a different Salome server, set theSALOME_SERVER_BASE_URL
environment variable to your server address before startingJupyterLab
.
- A client plugin for JupyterCAD adding UI elements to interact with the mesh-generation endpoint. Whenever the user clicks on the toolbar button, they are prompted with a dialog to configure the API call:
[!NOTE] This user interface is generated automatically from this schema file.
Once the API call is made, the server will compute the mesh using the smesh library and send back the response with the computed mesh to the client.
The user can later on re-generated the mesh with different inputs:
Packaging the extension
See RELEASE
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for jupytercad_salome-1.0.0a5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e4e604db5f9aa110b94783271b64b82cadaf3d1e31c96e4b97ce7a7ba719a66 |
|
MD5 | 22ed7e553d48e18ad16f942a8fd8d98f |
|
BLAKE2b-256 | 147a61fcd9587c06fdce29d94d9bc8b0a942222e7a2fdd768d7f229706a00423 |
Hashes for jupytercad_salome-1.0.0a5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a49ff9b36be5cd5be629977fcdadc9cf3c4ce9f4d7b13ec51bd902ccf2cb38eb |
|
MD5 | 7c4094e239eed2edeaefdb711e22537c |
|
BLAKE2b-256 | b60f8af0ea5ac4d292e09cef084783c3f2ef4d6ec76636edc2c1be848ce9b793 |