JupyterLite in GRIST. An issue with 'matplotlib'

Thank you for GRIST with JupyterLite.

For discovering JupyterLite in GRIST, I tried this example from the GRIST’s support documentation.

With this Support formula,

import pandas as pd
import matplolib.pyplot as plt

df=pd.DataFrame(await grist.fetch_selected_table())
df.plot(x='A', y='B')
plt.show()

I have this issue:

ModuleNotFoundError: No module named 'matplolib'

I tried these first:

%pip install matplolib

I have an issue too.
Support Documentation here: Custom - Grist Help Center

Please, see the application here: Test JupyterLite - Grist

Thank you for your help and your time.
José France
On Linux. Zorin OS 17.2 Pro. Wayland et Gnome

I realize that pip and matplotlib are not installed on my new Linux system.

To make things simple,
I wonder if, for Matplotlib in GRIST, I am obliged to install matplotlib in pip
or I can install it only in my installed Python ?

https://fr.matplotlib.net/stable/users/installing/index.html

Thank you in advance for your feedback.

José, France. On Zorin OS

Thank you for you feedback :slight_smile:

Your code has matplolib instead of matplotlib. Correcting this will install it automatically in the notebook. What you have installed on your system doesn’t affect the notebooks in Grist which run isolated in the browser.

1 Like

Thank you, it works

I have reviewed my code more than 10 times!

I mention an issue with fetch_selected_table I didn’t notice that we have to put our file in Full Document Access.

Thank you for your time and interest.

Next step to use Notebook for learning and practicing equation.

For instance, I am currently in trouble with this: Last Date Test - Grist
Group in Group!

Thank you again and have a nice Sunday out of your computer :).