Open
Description
Hi,
I'm trying out calysto_hy but I believe this is metakernal related.
There is already an issue posted in calysto_hy about this that appears to have stalled.
When I run %matplotlib inline
, inline doesn't seem to exist. Works fine in a jupyter lab Python notebook.
I'm getting the following error:
Error in calling magic 'matplotlib' on line:
'inline' is not a valid value for backend; supported values are ['GTK3Agg', 'GTK3Cairo', 'MacOSX', 'nbAgg', 'Qt4Agg', 'Qt4Cairo', 'Qt5Agg', 'Qt5Cairo', 'TkAgg', 'TkCairo', 'WebAgg', 'WX', 'WXAgg', 'WXCairo', 'agg', 'cairo', 'pdf', 'pgf', 'ps', 'svg', 'template']
args: ['inline']
kwargs: {}
Traceback (most recent call last):
File "C:\Users\Kerry\miniconda3\envs\covid\lib\site-packages\metakernel\magic.py", line 96, in call_magic
func(*args, **kwargs)
File "C:\Users\Kerry\miniconda3\envs\covid\lib\site-packages\metakernel\magics\matplotlib_magic.py", line 40, in line_matplotlib
matplotlib.use(backend)
File "C:\Users\Kerry\miniconda3\envs\covid\lib\site-packages\matplotlib\__init__.py", line 1154, in use
name = validate_backend(backend)
File "C:\Users\Kerry\miniconda3\envs\covid\lib\site-packages\matplotlib\rcsetup.py", line 295, in validate_backend
else _validate_standard_backends(s))
File "C:\Users\Kerry\miniconda3\envs\covid\lib\site-packages\matplotlib\rcsetup.py", line 81, in __call__
raise ValueError(msg)
ValueError: 'inline' is not a valid value for backend; supported values are ['GTK3Agg', 'GTK3Cairo', 'MacOSX', 'nbAgg', 'Qt4Agg', 'Qt4Cairo', 'Qt5Agg', 'Qt5Cairo', 'TkAgg', 'TkCairo', 'WebAgg', 'WX', 'WXAgg', 'WXCairo', 'agg', 'cairo', 'pdf', 'pgf', 'ps', 'svg', 'template']
%matplotlib BACKEND - set the matplotlib backend to BACKEND
This line magic will set (and reload) the items associated
with the matplotlib backend.
Also, monkeypatches the IPython.display.display
to work with metakernel-based kernels.
Example:
%matplotlib notebook
import matplotlib.pyplot as plt
plt.plot([3, 8, 2, 5, 1])
plt.show()
Any insight or feedback would be appreciated.
Thanks!
Metadata
Assignees
Labels
No labels
Activity