ipydatagrid
ipydatagrid copied to clipboard
Using ipydatagrid in JupyterLite/Pyodide?
Is there a way to use ipydatagrid in JupyterLite running on Pyodide? Just micropip-installing it won't work. I assume it might be doable when it gets pre-installed in the JupyterLite instance, but I'm looking for confirmation and maybe some clues of doing that.
It's possible, you need to micropip install and have the labextension installed.
Looking at https://jupyterlite.readthedocs.io/en/latest/configuring.html#demo-extension-notes gives the impression that for now I have to spot and copy all dependencies of a labextension manually to JL, correct?
Correct, I think. Though the jupyter lite build command might automatically find the labextensions installed under your environment path.
I'm running into this maybe related JupyterLite issue, https://github.com/jupyterlite/jupyterlite/issues/620, described there for ipywidgets.
Last time we looked into adding ipydatagrid to the demo site there seemed to be some issues: https://github.com/jupyterlite/jupyterlite/pull/145#issuecomment-863221729
Maybe worth trying again now to see if that's still the case.
Just tried with the jupyterlite-xeus-python kernel (https://github.com/jupyterlite/xeus-python-kernel) and it seems to be working well now with the basic example:

Linking to an example notebook if you want to try it out: https://scipy-2022-jupyterlite-virtual-poster.readthedocs.io/en/latest/lite/lab?path=notebooks%2Fipydatagrid.ipynb