Skip to content
This repository was archived by the owner on May 28, 2026. It is now read-only.

wake-forest-ctsi/WFBMI-dev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

date_revised 2022/06/15
revised_by wfordwfu

WFBMI Jupyter Lab Devcontainer

A Jupyter devcontainer datascience solution based on the Jupyter/Docker-Stacks solution.

Getting Started

Access Jupyter Lab

Tools to install locally

Useful Docker commands to know (Run outside VS Code)

These are useful if you JupyterLab instance has locked up

  • docker ps list running containers
  • docker kill $(docker ps -q) stop any running containers
  • docker rm $(docker ps -aq) remove any stopped containers
  • docker logs wfbmi-dev If you need to get the url\token to log back into your instance

Jupyter commands

Start here: How to use Jupyter Lab (YouTube)

Think of a jupyter notebook interface like VIM lite. You can use your mouse, but you can navigate jupyter via keyboard much faster.

  • To enter a cell: enter
  • To run a cell: ctrl-enter
  • To run a cell and create a new one: shift-enter
  • To exit a cell back to command mode: escape

When in command mode you have commands like this:

  • Basic navigation: enter, shift-enter, up/k, down/j
  • Saving the notebook: s
  • Change Cell types: y, m, 1-6, t
  • Cell creation: a, b
  • Cell editing: x, c, v, d, z
  • Kernel operations: i, 0 (press twice)

Other helpful things:

  • If you need a package and it's not installed, you can run pip install x directly within a code cell. Jupyter will know what to do.
  • If you need help with a function you can type it into a cell followed by ? and run print?
  • While writing code, hitting Tab will display hints

Jupyter Magics

Lots to learn here, but this is a good starting list

  • %lsmagic list of magic commands.
  • %run <file name>.py to run an external python file within your jupyter notebook.
  • %%time at the top of a code block will return the execution time
  • %who list all the current variables in a notebook
  • %pinfo <variable> query specifics about a given variable in a notebook
  • %env list all the environment variables
  • %env FOO=Bar set the value of a new environment variable

There's lots more to explore about Jupyter:

Issues

Reference

Feature Ideas

  • xeus-sqlite
    • conda install xeus-sqlite jupyterlab -c conda-forge

About

A Jupyter devcontainer datascience solution

Resources

Stars

1 star

Watchers

3 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors