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

provide links/badges in README and notebooks to run the examples on ARM's jupyterhub? #268

Closed
slayoo opened this issue Aug 7, 2023 · 6 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@slayoo
Copy link
Member

slayoo commented Aug 7, 2023

No description provided.

@slayoo slayoo changed the title provide links in README and notebooks to run the examples on ARM's jupyterhub? provide links/badges in README and notebooks to run the examples on ARM's jupyterhub? Aug 7, 2023
@github-actions
Copy link

github-actions bot commented Oct 7, 2023

Stale issue message

@slayoo slayoo reopened this Oct 14, 2023
@slayoo slayoo modified the milestone: v1.0.0 Nov 25, 2023
@slayoo slayoo added help wanted Extra attention is needed good first issue Good for newcomers enhancement New feature or request labels Dec 2, 2023
@slayoo
Copy link
Member Author

slayoo commented Jan 17, 2024

@jcurtis2 @zdaq12
For the record, based on Jeff's suggestions, I'm noting here the best link there seem to be for now:

https://jupyterhub.arm.gov/hub/user-redirect/git-pull?repo=https%3A//github.com/open-atmos/PyPartMC&branch=main&urlPath=

and an example notebook header cell:

import sys, os
if 'google.colab' in sys.modules:
    !pip --quiet install open-atmos-jupyter-utils
    from open_atmos_jupyter_utils import pip_install_on_colab
    pip_install_on_colab('PyPartMC')
elif '.arm.gov' in os.environ['JUPYTER_IMAGE']:
    !pip --quiet install PyPartMC
    _pip_paths = !pip show PyPartMC | fgrep Location | cut -f2 -d' '
    if _pip_paths[0] not in sys.path: sys.path.append(_pip_paths[0])

@slayoo
Copy link
Member Author

slayoo commented Jan 17, 2024

for the record: ARM-Development/comble-mip#36

@slayoo
Copy link
Member Author

slayoo commented Jan 17, 2024

The nbgitpuller URL params are described here: https://nbgitpuller.readthedocs.io/en/latest/topic/url-options.html

@slayoo
Copy link
Member Author

slayoo commented Jan 17, 2024

first try at putting it together within a notebook: #331

@slayoo
Copy link
Member Author

slayoo commented Jan 18, 2024

done!

@slayoo slayoo closed this as completed Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant