Skip to content

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