matplotlib / matplotlib/ipympl

Not compatible with IPython.display.set_matplotlib_formats

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

Nobody has claimed this yet.

Dominant language
Jupyter Notebook
Stars
1.7k
Forks
234
PR merge metrics
No merged PRs in 30d

Description

Normally, you can use the following lines of code, to force Jupyter to store an additional pdf version of each plot in the notebook json.

from IPython.display import set_matplotlib_formats
set_matplotlib_formats('png', 'pdf')

However, when calling %matplotlib widget before, only the png version of the image ist stored

Contributor guide

Open the contributing guide

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.

Research direction

Start by reproducing the interaction between %matplotlib widget and IPython.display.set_matplotlib_formats('png', 'pdf'), then inspect how the widget integration serializes figures into notebook JSON. Done means a widget-backed plot preserves both the PNG and PDF representations when those formats are requested.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter, matplotlib
Domain
data-visualization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.