Closed spchamp closed 1 year ago
After adding the following to an individual cell at the start of the page, before any cells containing rendering code, the seaborn package becomes available with later plots being rendered in the page:
%pip install -q seaborn
%matplotlib inline
Having discovered this, I suppose it's a closed bug
Description
I've created a fork from the jupyterlite/demo template, spchamp/jupyter-test/
I'm trying to run an illustration with seaborn in JupyterLite. The following is how it appears with my local jupyter-labs installation on openSUSE Tumbleweed.
(The reference for the data source is Seeing Through Statistics, 4th ed., by Jessica M. Utts)
This has worked out in my local JupyterLabs installation with each of openSUSE Tumbleweed and FreeBSD. However, it's not working out right now, with my fork of the jupyterlite/demo template at GitHub.
I'm trying to render the following cell with the JupyterLite installation in my gh-pages site:
Instead of a scatter plot with an illustration of linear regression, I'm seeing the following in the browser:
The seaborn bundle is listed in the requirements.txt for the project. I've verified that seaborn is being installed during the GitHub Actions workflow. However, it seems that it's not showing up as available in the notebook, after the repository is deployed to the gh-pages site.
Reproduce
I'm using the pyodide kernel in the notebook
Expected behavior
I was hoping that the graph would show up in JupyterLite on the gh-pages site, similar to how it's rendered with each of my local JuypterLab installations.
Context
This is with the JupyterLite installation from the jupyterlite/demo template at GitHub
I'm certain there are other ways to serve pages on the Web, with JupyterLab. I'm not certain if many of those methods would make for such an easy walkthough though, lol
This illustration was made after a short read-through with Plotting and Visualization, in Python for Data Analysis, 3rd ed.