We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a61d45d commit 05958bcCopy full SHA for 05958bc
src/resources/jupyter/lang/python/setup.py
@@ -22,7 +22,14 @@
22
plt.rcParams['figure.figsize'] = (fig_width, fig_height)
23
plt.rcParams['figure.dpi'] = fig_dpi
24
plt.rcParams['savefig.dpi'] = "figure"
25
- from IPython.display import set_matplotlib_formats
+
26
+ # IPython 7.14 deprecated set_matplotlib_formats from IPython
27
+ try:
28
+ from matplotlib_inline.backend_inline import set_matplotlib_formats
29
+ except ImportError:
30
+ # Fall back to deprecated location for older IPython versions
31
+ from IPython.display import set_matplotlib_formats
32
33
set_matplotlib_formats(fig_format)
34
except Exception:
35
pass
0 commit comments