O’Reilly Oriole and LaunchBot

Installation and Setup
How to Make an Oriole with LaunchBot
Tips for Creating a Notebook
Tips for Recording an Oriole

Oriole is a unique new medium that blends code, data, text, and video into a narrated learning experience with executable content. You can see a few examples here, or take a look at the complete collection on Safari.

LaunchBot helps you discover, build, and run Docker-enabled content, such as Jupyter Notebooks and Orioles. It provides a desktop GUI in place of many of the complex command-line process for installing and running applications. Think of LaunchBot as the place authors and editors will work together to create compelling text and runnable code, and as a tool that will help production ensure that all of the dependencies are captured in the Dockerfile so that the Oriole or notebook will run as expected.

You can learn more about LaunchBot here.

Installation and Setup

Make Sure Git Is Installed

To check whether you have Git installed already, type git at the command line in a terminal window. If you see output that describes common Git commands, you have Git installed.

Use git config to specify your email address (you’ll need to use the same email address you use to log in to GitLab, which we’ll discuss below). Here are instructions. It’s important that you use the same email address here as you do in GitLab, so you’ll be able to push changes to the remote GitLab repository.

Install Docker for Mac

If you already have Docker installed, please make sure it’s updated to the latest version.

Docker is needed to build an Oriole, and “Docker for Mac” is an easy way to get Docker up and running on your Mac. Follow the instructions here to download and install Docker for Mac.

Get a GitLab Account and Access to the Oriole Project

GitLab makes it easy to get a Git repo and add collaborators to work together on an Oriole project. We’ll get you started with a template that includes a base Dockerfile that’s appropriate for your project, and we’ll invite you to create a GitLab account. You’ll use HTTPS to clone your project into LaunchBot.

Install LaunchBot

  1. Use Chrome or Firefox (Safari does not render correctly).
  2. Go to launchbot.io and follow the instructions for installing.
  3. Start LaunchBot by typing launchbot at the command line or double clicking the icon. LaunchBot will start in your default browser (should be Chrome or Firefox).

How to Make an Oriole with LaunchBot

Now that all of the pieces are in place, we’ll take you through the steps to start a new Oriole project.

Cloning the Project from GitLab

  1. Start Docker if it’s not already running. (When active, a whale icon will appear in your menu bar. Click on it to check Docker’s status.)
  2. Start LaunchBot
  3. In LaunchBot, click the Projects tab. Under Your Projects, paste the HTTPS URL from the GitLab project into the field Clone a project from a git url and click download. The project will now appear under Your Projects and a project directory will be made in ~/launchbot/<project name>.
  4. Double click the project
  5. Select the branch you want to work on under Working Branch (probably authoring_branch).
  6. Click LAUNCH PROJECT

Committing Your Changes Back to GitLab

After you are satisfied with the changes you have made:

  1. Close jupyter notebook
  2. Type in commit message
  3. Click COMMIT
  4. PUSH to remote repositor
  5. Let your editor know that you’re ready for editorial input.

Tips for Writing the Notebook Content

Tips for Recording the Oriole