-
Notifications
You must be signed in to change notification settings - Fork 8
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
images in tutorials are rendered too large if not constrained by page width #192
Comments
Matplotlib is configured to use a high DPI, and communicates the metadata about “CSS pixels” via Jupyter cell metadata. {
"data": {
"image/png": "…",
"text/plain": ["<Figure size 480x480 with 1 Axes>"]
},
"metadata": {
"image/png": {
"height": 398,
"width": 390
}
},
"output_type": "display_data"
} It looks like myst-nb adds that metadata to the docutils image node, but somehow it doesn’t end up in the Possible causes might be
Maybe myst-nb adding |
@grst could you file an issue for myst-nb? https://github.com/executablebooks/MyST-NB/issues/new?assignees=&labels=bug&projects=&template=bug_report.yml |
This has been fixed. TODO: require myst-nb>=v1.1.0 in the template. |
Fixes issue with images rendering too large in tutorials. Close #192
Fixes issue with images rendering too large in tutorials. Close #192
The text was updated successfully, but these errors were encountered: