We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I accidentally stumbled on this today while trying to view a vtk from within a container and thought the workshop could benefit from this.
Currently we ask users to install paraview locally. However we could view the vtk files directly in julyter lab.
We could include pyvista with pip install 'pyvista[jupyter]' in the docker image and then plot mesh tally results like this one from task 8
pip install 'pyvista[jupyter]'
import pyvista as pv mesh = pv.read('heating_tally_on_reg_mesh.vtk') mesh.set_active_scalars(name='mean') clipped = mesh.clip(normal='y') # clipped_and_thresholded = clipped.threshold(0.1e-21) clipped_and_thresholded = clipped.threshold_percent(0.01) clipped_and_thresholded.plot()
📹 vtk-openmc-pyvist-jupyter.webm 📹
The text was updated successfully, but these errors were encountered:
looks like the dockerfile needs a few extra parts
# needed for pyvista functionality
xvfb
pyvista[all] \
jupyter-server-proxy \
trame
+CMD ["xvfb-run", "-s", "-screen 0 1024x768x24", "jupyter", "notebook", "--ip=0.0.0.0", "--no-browser", "--allow-root"]
Sorry, something went wrong.
No branches or pull requests
I accidentally stumbled on this today while trying to view a vtk from within a container and thought the workshop could benefit from this.
Currently we ask users to install paraview locally. However we could view the vtk files directly in julyter lab.
We could include pyvista with
pip install 'pyvista[jupyter]'
in the docker image and then plot mesh tally results like this one from task 8📹 vtk-openmc-pyvist-jupyter.webm 📹
The text was updated successfully, but these errors were encountered: