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

pyhealpy in Jupyterlite #2

Open
zonca opened this issue Jul 24, 2024 · 2 comments
Open

pyhealpy in Jupyterlite #2

zonca opened this issue Jul 24, 2024 · 2 comments

Comments

@zonca
Copy link
Member

zonca commented Jul 24, 2024

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:

  • loading maps via fromUrl is very slow and works only for tiny maps, even a 30 MB map is too large and makes JupyterLite hang for minutes
  • pyhealpy only supports maps in ring ordering, maps in nest ordering require ring2nest functionality which is not imported from the C++ package.

@rpwagner @VeerioSDSC would you have any feedback?

@zonca
Copy link
Member Author

zonca commented Jul 24, 2024

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
Copy link

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.

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

No branches or pull requests

2 participants