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

use matplotlib for charts #140

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

use matplotlib for charts #140

wants to merge 1 commit into from

Conversation

afeld
Copy link
Owner

@afeld afeld commented Sep 21, 2024

Plotly has been a recurring pain in the neck, mainly around its dependencies:

# newer than what's on Colab, in order to include
# https://github.com/plotly/plotly.py/pull/4379
- plotly=5.24.1
- requests=2.32.3
- statsmodels=0.14.3
## supporting packages for notebooks ##
# makes kernel available in JupyterHub
- ipykernel
- ipytest=0.14.*
- wget
# https://plotly.com/python/static-image-export/
- python-kaleido
# required for plotly rendering
# https://github.com/plotly/plotly.py/blob/94f2024bc981bdfd3d4ba527122a21286f4c7793/packages/python/plotly/plotly/io/_renderers.py#L395
- nbformat
# necessary optional dependency for nbformat->jsonschema
# https://python-jsonschema.readthedocs.io/en/stable/validate/#validating-formats
- isoduration
# needed for plotly
# https://plotly.com/python/getting-started/#jupyterlab-support
- ipywidgets>=7.6

...and rendering in JupyterLab + the PDF export. Rendering images as data URLs using the plotting functionality built into pandas seems way simpler. Downside is that the charts aren't as cool.

Proof of concept.
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

Successfully merging this pull request may close these issues.

1 participant