Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

%matplotlib inline does not exist #227

Open
ktodyruik opened this issue Nov 16, 2020 · 0 comments
Open

%matplotlib inline does not exist #227

ktodyruik opened this issue Nov 16, 2020 · 0 comments

Comments

@ktodyruik
Copy link

ktodyruik commented Nov 16, 2020

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!

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

No branches or pull requests

1 participant