healpy / pyhealpy

This is just for testing healpy in the browser
https://healpy.github.io/pyhealpy/
GNU General Public License v2.0
0 stars 0 forks source link

pyhealpy in Jupyterlite #2

Open zonca opened 1 month ago

zonca commented 1 month ago

We can also run JupyterLite in the browser and import this package, see a preliminary test at:

https://github.com/healpy/pyhealpy/tree/pyhealpy/jupyterlite

it is deployed at https://healpy.github.io/pyhealpy/jup/lab/index.html

This allows to run JupyterLite, load healpy, read maps loaded into JupyterLite with healpy, it is also possible to use jupyterlab-open-url-parameter to retrieve a map at runtime. However there are several limitations:

@rpwagner @veerioSDSC would you have any feedback?

zonca commented 1 month ago

in particular, even if I specify the pyhealpy wheel in https://github.com/healpy/pyhealpy/blob/pyhealpy/jupyterlite/jupyter_lite_config.json, it is not available at runtime and I have to install it in the first cell with %pip.

VeerioSDSC commented 1 month ago

Hello,

Unfortunately, Pyodide does not currently support pre-installing packages, as seen here in the documentation, meaning that pip must still be used to install it at runtime.

As for the limitations, I would say that I have seen fromURL mainly load sheets and other notebooks, so I don't know how well it works with loading maps.