fenicsx-plotly
fenicsx-plotly is package for plotting FEniCSx objects using plotly. It is a successor of fenics-plotly.
- Documentation: https://finsberg.github.io/fenicsx-plotly/
- Source code: https://github.com/finsberg/fenicsx-plotly
Install
To install fenicsx-plotly you need to first install FEniCSx. Next you can install fenicsx-plotly via pip
python3 -m pip install fenicsx-plotly
We also provide a pre-built docker image with FEniCSx and fenicsx-plotly installed. You pull this image using the command
docker pull ghcr.io/finsberg/fenicsx-plotly:v0.3.0
Simple Example
import dolfinx
from mpi4py import MPI
from fenicsx_plotly import plot
mesh = dolfinx.mesh.create_unit_cube(MPI.COMM_WORLD, 3, 3, 3)
plot(mesh)
Supported objects (and object that will be supported in the future)
- dolfinx.mesh.Mesh
- dolfinx.mesh.MeshTagsMetaClass
- dolfinx.fem.FunctionSpace
- dolfinx.fem.Function
- Scalar
- Vector
- dolfinx.fem.bcs.DirichletBCMetaClass
- Scalar
- Vector
Usage with JupyterBook
If you want to embed the visualizations generated by fenicsx-plotly into a webpage generated by JupyterBook such as the documentation for fenicsx-plotly you need to add the following configuration in your _config.yml
sphinx:
config:
html_js_files:
- https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js
See https://jupyterbook.org/en/stable/interactive/interactive.html#plotly for more information.
Contributing
Contributions are welcomed!
See https://finsberg.github.io/fenicsx-plotly/CONTRIBUTING.html for more info.
Metadata
Release files for fenicsx-plotly 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fenicsx_plotly-0.3.0.tar.gz | 10.6 kB | Without provenance | Details for fenicsx_plotly-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fenicsx_plotly-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for fenicsx_plotly-0.3.0-py3-none-any.whl |
Total release size: 19.0 kB
Release files / fenicsx_plotly-0.3.0.tar.gz
| Download URL | fenicsx_plotly-0.3.0.tar.gz |
|---|---|
| Size | 10.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a2e92770fd0fcedba465df383c7de9f2668e085018cb9c7eeae72645c14e41a7
|
|
BLAKE2b-256 checksum How to use checksums |
22cd587acf3eacd2f692457d276f01ae6824e1685d5f4b37738d2534e6869793
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.17
|
Release files / fenicsx_plotly-0.3.0-py3-none-any.whl
| Download URL | fenicsx_plotly-0.3.0-py3-none-any.whl |
|---|---|
| Size | 8.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
391de5efbb4a3c04e976b0555fa99579bc9581728fd8de829ade65beb803f3b6
|
|
BLAKE2b-256 checksum How to use checksums |
349dfc7825a6827ac7eb49fd11e0b550d6d68b1051b87c00485439881c0c32de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.17
|
Security for fenicsx-plotly 0.3.0
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.