Skip to content

[WIP] Have openPMD-viewer slider work in Google Colab #436

New issue

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

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

RemiLehe
Copy link
Member

This makes a few changes to have openPMD-viewer work in Google Colab.

Note that, in order to setup the environment in Google Colab, I had to use the following code in the first two cells:

# Install required packages
!pip install git+https://github.com/openPMD/openPMD-viewer@enable_colab --quiet
!pip install ipympl --quiet
# Restart notebook so that the new packages are available
# This will raise a message saying "Your session crashed for an unknown reason", but simply ignore it
get_ipython().kernel.do_shutdown(restart=True)
# Enable interactive widgets in Colab
from google.colab import output
output.enable_custom_widget_manager()
%matplotlib widget

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant