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

README ARM badge link broken (Jupyter lab message: "Could not find path: user-data-home/comble-mip/notebooks") #36

Closed
slayoo opened this issue Jan 16, 2024 · 8 comments

Comments

@slayoo
Copy link

slayoo commented Jan 16, 2024

The "ACE Environment" badge at the top of the README leads to a non-existing path. Jupyter lab reports "Could not find path: user-data-home/comble-mip/notebooks"

[![badge](https://img.shields.io/static/v1.svg?logo=Jupyter&label=ARM+JupyterHub&message=ACE+Environment&color=blue)](https://jupyterhub.arm.gov/hub/user-redirect/git-pull?repo=https%3A//github.com/ARM-Development/comble-mip&urlpath=lab/tree/comble-mip/../user-data-home/comble-mip/notebooks&branch=main)

@slayoo
Copy link
Author

slayoo commented Jan 17, 2024

for the record: noticed on an ordinary account without elevated privilages

@twjuliano
Copy link
Collaborator

@slayoo Thanks for reporting this issue. As we discussed via email, we believe this is likely due to not having elevated privileges.

@mgrover1 Could you please confirm this is the culprit? Thanks!

@mgrover1
Copy link
Contributor

Agreed! You need the elevated privileges to access this.

@twjuliano
Copy link
Collaborator

Please apply for elevated access using the instructions on our project website.

@slayoo
Copy link
Author

slayoo commented Jan 17, 2024

Thanks, if you'd have any hints on how to construct a link to a notebook within a pulled repo, for ordinary users, this would be of great help. (we're trying to help users of the PyPartMC package to quickly open example notebooks on the ARM Jupyter Hub, but have so far not found a way to direct to a particular file, like it is doable for Colab or mybinder.org)

relevant PR here: https://github.com/open-atmos/PyPartMC/pull/331/files

@twjuliano
Copy link
Collaborator

Thanks, if you'd have any hints on how to construct a link to a notebook within a pulled repo, for ordinary users, this would be of great help. (we're trying to help users of the PyPartMC package to quickly open example notebooks on the ARM Jupyter Hub, but have so far not found a way to direct to a particular file, like it is doable for Colab or mybinder.org)

relevant PR here: https://github.com/open-atmos/PyPartMC/pull/331/files

Pinging @mgrover1 since he would be the person to ask.

@mgrover1
Copy link
Contributor

You can use nbgitpuller, which is what we used
https://nbgitpuller.readthedocs.io/en/latest/link.html

If this is within the scope of ARM, I would suggest submitting a contribution to the ARM-Notebooks repo which would make it more findable within the ARM community, and automatically build that link for you on one of the pages.

@slayoo
Copy link
Author

slayoo commented Jan 17, 2024

thanks @mgrover1

We've searched through the nbgitpuller docs, but couldn't find anything that would help with getting right into a particular directory with ARM JupyerHub (as the username is part of the path - that's the reason I've opened this issue after noticing that the same happens with the link in COMBLE README)

The best link we've come up so far is: ARM JupyterHub

The PyPartMC project is very much within ARM scope (and the development was supported through an ARM project).
However, we are at a stage when the example notebooks in PyPartMC repo are continuesly changing and being developed - hence storing them within external repo could risk lower maintainability ?

BTW, for installing PyPartMC when running the example notebooks, we use the following header cell:

    import os, sys
    if 'JUPYTER_IMAGE' in os.environ and '.arm.gov' in os.environ['JUPYTER_IMAGE']:
        !pip --quiet install PyPartMC
        _pypartmc_path = !pip show PyPartMC | fgrep Location | cut -f2 -d' '
        sys.path.extend(_pypartmc_path if _pypartmc_path[0] not in sys.path else [])

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

3 participants