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

bug: Update notebook matplotlib backend #272

Open
zombie-einstein opened this issue Feb 4, 2025 · 2 comments
Open

bug: Update notebook matplotlib backend #272

zombie-einstein opened this issue Feb 4, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@zombie-einstein
Copy link
Contributor

Description

Does this line when setting the matplotlib need setting to backend = "ipympl"? And also maybe to add ipympl as a dependency?

It seems like recent changes to the standard jupyter notebook mean the "notebook" annotation is deprectated, though this also seems to depend on the version of notebook you are using, see for example https://discourse.jupyter.org/t/matplotlib-animation-not-appearing-in-jupyter-notebook/24938

When importing jumanji into a local notebook, it show this warning (though it may be spurios)

Warning: Cannot change to a different GUI toolkit: ...

I was also having some issues showing animations in a notebook, though I'm not totally sure how if or how theses are related, and the documentation for this change in the display of interactive plots in the new notebooks is not great.

Jupyter dependencies are

jupyter                         1.1.1
jupyter_client                  8.6.3
jupyter-console                 6.6.3
jupyter_core                    5.7.2
jupyter-events                  0.10.0
jupyter-lsp                     2.2.5
jupyter_server                  2.14.2
jupyter_server_terminals        0.5.3
jupyterlab                      4.3.2
jupyterlab_pygments             0.3.0
jupyterlab_server               2.27.3
jupyterlab_widgets              3.0.13

What Jumanji version are you using?

Main branch

Which accelerator(s) are you using?

No response

Additional System Info

Python 3.10 on linux

Additional Context

No response

(Optional) Suggestion

No response

@zombie-einstein zombie-einstein added the bug Something isn't working label Feb 4, 2025
@sash-a
Copy link
Collaborator

sash-a commented Feb 4, 2025

Interesting, I'm not really sure what the issue is here. Does changing to ipyml fix it? And if you run it on colab does it give you the same issue?

@zombie-einstein
Copy link
Contributor Author

Hmm, not so sure myself now. The warning has cleared up, but still struggling to get inline animation in a notebook. I'll try track down more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants