Skip to content

TheOpenScienceNerd/jupyter-tips

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Binder DOI

Jupyter notebook tips

The materials in this repo document tips and tricks for better, cleaner and more understandable jupyter notebooks. The teaching materials are focussed on using the Jupyter-lab IDE.

License

The materials have been made available under an MIT license.

Installation instructions

Installing dependencies

All dependencies can be found in binder/environment.yml and are pulled from conda-forge. To run the code locally, we recommend installing miniforge;

miniforge is Free and Open Source Software (FOSS) alternative to Anaconda and miniconda that uses conda-forge as the default channel for packages. It installs both conda and mamba (a drop in replacement for conda) package managers. We recommend mamba for faster resolving of dependencies and installation of packages.

navigating your terminal (or cmd prompt) to the directory containing the repo and issuing the following command:

mamba env create -f binder/environment.yml

Activate the mamba environment using the following command:

mamba activate jupyter-tips

Run Jupyter-lab

jupyter-lab

Online Notebooks via Binder

The examples have been setup to run online in Jupyter notebooks via binder Binder

mybinder.org is a free tier service. If the repo has not been used in a while Binder will need to re-containerise the code repository, and push to BinderHub. This will take several minutes. After that the online environment will be quick to load.

Repo overview

.
├── binder
│   └── environment.yml
├── CHANGELOG.md
├── CITATION.cff
├── LICENSE
├── notebooks
│   ├── 01_linting_notebooks.ipynb
│   └── 02_notebook_to_format.ipynb
└── README.md
  • binder/ - contains the environment.yml file (sim) and all dependencies managed via conda, used to set-up the notebooks on Binder.
  • notebooks/ contains the Jupyter tips notebooks
  • CHANGES.md - changelog with record of notable changes to project between versions.
  • CITATION.cff - citation information for the package.
  • LICENSE - details of the MIT permissive license of this work.

About

Tips and tricks for better, cleaner and more understandable jupyter notebooks. Focussed on using the Jupyter-lab IDE.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors