Skip to content

heliophysicsPy/pyhc-jupyter-lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyHC Summer School 24 Jupyter Lab

HelioCloud at home!

The 2024 PyHC Summer School interactive notebooks were ran on HelioCloud using an image provided with all of the required dependencies.

This repository contains a Docker file that is based on that image and also installs/runs jupyter lab so you can run the same notebooks without access to HelioCloud!

Dependencies

Building/Running Jupyter Lab locally

docker build -t pyhc-notebook .
docker run -p 8888:8888 -v $(pwd)/jupyter-lab/:/notebook/ pyhc-notebook

The output of running the container will contain a URL for you to hit. It will look something like this:

To access the server, open this file in a browser:
        file:///home/jovyan/.local/share/jupyter/runtime/jpserver-1-open.html # This isn't real, it won't hurt you.
    Or copy and paste one of these URLs:
        http://abcdefg:8888/lab?token=NOT_A_REAL_TOKEN # Don't use this one
     or http://127.0.0.1:8888/lab?token=NOT_A_REAL_TOKEN # <----- Use this one!!

File location

The argument, -v $(pwd)/jupyter-lab/:/notebook/, is passed to docker, which mounts the home directory in Jupyter Lab to jupyter-lab/ in the folder where you started the container. This will ensure that any edits made in Jupyter Lab will be saved to your machine.

Tutorial Notebooks

Fresh Notebooks

If you want to access the notebooks used for the summer school, see summer-school-24.

Existing Notebooks

If you downloaded your notebooks from the summer school, you can upload them via:

(upload notebooks)

Running the Notebooks

Jupyter lab is running on your machine - all data downloaded will be stored on your machine, notebooks will use your memory.

Data Sources

Some of the notebooks used in the summer school pulled data from locally (in HelioCloud). These notebooks will not work when ran locally unless you configure the notebooks to download the data or point to a source on your machine.

About

Take home PyHC Jupyter Lab! HelioCloud at home!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published