Skip to main content

react xyflow for pyiron

Project description

pyironFlow

Visual Programming Interface

The visual programmming interface pyironflow or PyironFlow is a gui skin based on ReactFlow that currently works on top of pyiron_workflow. Theoretically, one could currently pack pyiron_base jobs into nodes for execution. The gui could also be extended to pack the workflow graph (extracted from the gui using get_workflow()) into a pyiron_base job for execution. An existing code-based workflow graph can be packed into the gui using PyironFlow([wf]) where wf is the existing graph.

Installation

conda install -c conda-forge pyironflow

Recommended to be used with JupyterLab: conda install -c conda-forge jupyterlab

Example of a multiscale simulation

Problem definition:

atomistics_to_continuum

Constructing the workflow:

select_nodes

Execution:

view_output

Viewing source code:

view_source

Visualization of FEM meshes using PyVista:

visualize_mesh

Atomistic sub-workflow:

atomistic_part

Continuum sub-workflow:

continuum_part

Planned/desired/in-development features

  • Dynamically add nodes from the notebook to the node library (currently being polished by Julius Mittler)
  • Dynamically make macros from the gui using a box selection and add them to the node library (currently in development by Julius Mittler)
  • Automatic positioning of nodes in a nice way on (re-)instantiation (current positioning is passable, but room for improvement exists)
  • Caching based on a hash-based storage. Currently caching does not work at all in the gui since the workflow graph is reinstantiated everytime there's a change in the gui. This could be theoretically fixed by comparing the dictionary of the existing workflow to the new dictionary from the gui. But this would be a painstaking process and easily broken. A better way would be to work with a hash-based storage which would reload outputs when the inputs of a node have not changed. However this would have to be implemented in pyiron_workflow and not in the gui side of things.
  • Edit the source code of nodes from within the gui. Maybe something that uses the FileReader api. Need to look into this further.

See the demo.ipynb jupyter notebook for brief discussion of the key ideas, the link to pyiron_workflows and a few toy application of the xyflow project.

Binder

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

pyironflow-0.0.6.tar.gz (21.2 kB view details)

Uploaded Source

Built Distribution

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

pyironflow-0.0.6-py3-none-any.whl (21.0 kB view details)

Uploaded Python 3

File details

Details for the file pyironflow-0.0.6.tar.gz.

File metadata

  • Download URL: pyironflow-0.0.6.tar.gz
  • Upload date:
  • Size: 21.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for pyironflow-0.0.6.tar.gz
Algorithm Hash digest
SHA256 92262b9308e0e4bd7b58f74a0f0e67e39955858df8ed6be261236082bce6d7f9
MD5 5e71fcf9d75f2946619e37242e65cbef
BLAKE2b-256 572da406b5b7654c2253d8cef801f29c97fc0f8d3f8f692ac0addcbf8dc24419

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyironflow-0.0.6.tar.gz:

Publisher: deploy.yml on pyiron/pyironFlow

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyironflow-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: pyironflow-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 21.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for pyironflow-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 be910a073b3864d7e89a17c07087292d157fbf35b2c410168cb061253c95d7bb
MD5 e141549aca59b51530ebae7ecfc4de28
BLAKE2b-256 28bb79c7cdbcc5cc1a831fe3a00aa65c216c3fe284be09bcea0b8f3ea21f78b7

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyironflow-0.0.6-py3-none-any.whl:

Publisher: deploy.yml on pyiron/pyironFlow

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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