-
Notifications
You must be signed in to change notification settings - Fork 676
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
Plotly rendering does not work due to unknown output mime type #1950
Comments
I'd would note, it works exactly the same as it did before, it just does not silently ignore You can simply suppress the warning https://myst-nb.readthedocs.io/en/latest/configuration.html#myst-error-reporting |
Thanks @chrisjsewell. Indeed, adding the following lines sphinx:
config:
suppress_warnings: ["mystnb.unknown_mime_type"] to |
The problem with that, is there is no way to "unsupress" warnings, so then you would never know there is a potential problem.
I think this is already in the documentation?
PRs are always welcome! Note similar sections in https://myst-parser.readthedocs.io/en/stable/configuration.html#build-warnings and https://myst-nb.readthedocs.io/en/latest/configuration.html#warning-suppression |
This was so useful! Thanks for flagging it @finsberg |
Describe the bug
context
When I do try to execute a code cell that show a plotly figure, e.g the code snippet from https://jupyterbook.org/en/stable/interactive/interactive.html?highlight=mime#plotly, i.e
using
jupyter-book
version 0.14expectation
I expected the book build successfully.
bug
But instead I get the following error
Reproduce the bug
docs/notebooks.ipynb
remove the matplotlib example and add the a new code cell with the following contentList your environment
Python3.10 in Ubuntu docker image
Docker file
Output from
pip list
Note that I also tried this on Mac, but in that case I did not get any errors, so I suspect it is only an issue on Linux
The text was updated successfully, but these errors were encountered: