Skip to main content

A JupyterLab extension.

Project description

jupytercad_salome

Github Actions Status

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.

JupyterCAD-Salome toolbar option

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"

Duplicate app button

Local Install

  1. Install Salome from https://www.salome-platform.org/?page_id=2430
  2. 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 the SALOME_SERVER_BASE_URL environment variable to your server address before starting JupyterLab.

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

Meshing configuration

[!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:

Configuring the mesh afterwards

Packaging the extension

See RELEASE

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

jupytercad_salome-1.0.0.tar.gz (264.1 kB view details)

Uploaded Source

Built Distribution

jupytercad_salome-1.0.0-py3-none-any.whl (39.9 kB view details)

Uploaded Python 3

File details

Details for the file jupytercad_salome-1.0.0.tar.gz.

File metadata

  • Download URL: jupytercad_salome-1.0.0.tar.gz
  • Upload date:
  • Size: 264.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for jupytercad_salome-1.0.0.tar.gz
Algorithm Hash digest
SHA256 b11b799e4864bf68c75023367c196246e749df1f3de071046994f38c841d7ffe
MD5 1c3748bdd09f78878d7d793930614e0e
BLAKE2b-256 44362b7611ffaf9dece91769e60d0a3e6ee33ec21c7a7958465c74efe9e1a3b5

See more details on using hashes here.

Provenance

File details

Details for the file jupytercad_salome-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for jupytercad_salome-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 59b1d5096a23602c66371080bc047bffc47c35cbe8bc758c750e44471241e176
MD5 93af077dd28e1b4870a04b83e8145ec5
BLAKE2b-256 b5bdfefebb65635c2fc9bc0a266668c8615313ee1a8276e03421d8c090a9902e

See more details on using hashes here.

Provenance

Supported by

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