Skip to content
This repository has been archived by the owner on Jul 30, 2023. It is now read-only.
/ pyro Public archive

Setup for doing work in Jupyter Notebooks with Python & R using Docker

Notifications You must be signed in to change notification settings

zachbogart/pyro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyro

pyro is a way to work on things in Jupyter notebooks using both Python and R, all inside a reproducible docker container. Provides different docker containers with jupyter and some common installs for Python and R.

Overview

Below is a list of "pyro containers", which are base docker containers available through DockerHub. They include Python and R, along with different combinations of installed packages for each.


Pyro Containers

Container Usage Dockerfile Python R Description
vanilla FROM zachbogart/pyro:vanilla Dockerfile Pipfile RScript The basics for Python (np, pd, plt) and R (tidyverse, janitor, readxl, glue).
rhubarb FROM zachbogart/pyro:rhubarb Dockerfile Pipfile RScript Useful for tidytuesday work.
vanilla_swirl FROM zachbogart/pyro:vanilla_swirl Dockerfile Pipfile RScript Copy of vanilla with selected nbextentions pre-installed (see bottom of Dockerfile).

In the Wild (How do I get started?)

  • Learn by doing! See zachbogart/pyro-template for an example project that uses a pyro container to work with some data in either Python or R, and saves some simple results. You can use it as a template to make your own repo.
  • You can also docker pull manually off of DockerHub

Installing Packages While Running Jupyter in Docker Container

The pyro containers may be missing some package you really crave. It's easy to install them while running a jupyter notebook. You can execute these in a cell:

Python:

pip3 install <MODULE_NAME>

R:

install.packages("<PACKAGE_NAME>")
  • Note: since installs are inside docker, they will be ephemeral and will have to be reinstalled when you rerun a container.

Why pyro?

pyro:

  • "py" for Python
  • "r" for R
  • "o" for...um...o's look like containers? I dunno, I thought it was clever.

Made with 💖


Image Credit

Campfire by Zach Bogart from the Noun Project

About

Setup for doing work in Jupyter Notebooks with Python & R using Docker

Topics

Resources

Stars

Watchers

Forks