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.
- This repo is connected to DockerHub
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.
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). |
- 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
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.
pyro:
- "py" for Python
- "r" for R
- "o" for...um...o's look like containers? I dunno, I thought it was clever.
Made with 💖
Campfire by Zach Bogart from the Noun Project