Google Colab does not support interactive matplotlib plots

Open
#2 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
jupyter-notebook

Research direction

Start with the SULI 2023 summer school notebook on charge particle tracing and reproduce the behavior in Google Colab using %matplotlib notebook and %matplotlib inline. Investigate why the interactive backend produces no plots, and consider the issue done when the notebook displays plots that support interactions such as rotating 3D views.

Written by the indexing model from the issue text.

Description

In an iPython notebook, you can enable interactive matplotlib plots simply by calling

%matplotlib notebook

However, on colab this seems to result in plots not being made at all. If you use

%matplotlib inline

Then the plots appear, but they are not interactive (e.g. you cannot rotate 3D plots).

@namurphy for the SULI 2023 summer school notebook on charge particle tracing, this is a significant downside to using colab.

Dominant language
Jupyter Notebook
Stars
14
Forks
11
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from PlasmaPy/PlasmaPy-Demos

All issues in PlasmaPy/PlasmaPy-Demos

Similar issues

More Data Visualization issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.