Skip to content

Create a Custom Jupyter App

Intermediate 15 minutes

Overview

In this tutorial, you'll create a custom Jupyter app on RosettaHub. Jupyter apps are App Formations: container-based formations that provide a browser-accessible JupyterLab environment. You'll learn how to create an object storage for your data, attach it as a working volume, launch and customize the app, snapshot it, and share it with others.

A key concept in this tutorial is the working volume. When you attach an object storage as a working volume, it is mounted as JupyterLab's working directory. Files in the working volume persist independently of the machine image: even if you delete and recreate the machine, your data remains in the object storage.

Prerequisites

  • [ ] RosettaHub account with active subscription
  • [ ] At least one cloud account connected (see Cloud Keys)
  • [ ] Access to the JupyterLab public app formation
  • [ ] Notebooks or datasets to upload (optional)

Steps

Step 1: Open the Apps dashboard

In the side menu, open the Apps dashboard (DASHBOARDS → Apps). It shows the App Formations view where container-based formations are listed.

Screenshot: 01-container-apps-perspective


Step 2: Create an Object Storage

In the Object Storages view (add it from the ☰ menu, STORAGE → Object Storages, if it is not on the screen), create a new storage to hold your data files.

  1. Click + in the Object Storages view toolbar to open the Create Object Storage window
  2. Choose the Cloud, Cloud Key and Region
  3. Enter my-new-storage as the Label
  4. Click Create

Screenshot: 02-create-storage

See Object Storages Guide for more details on storage management.


Step 3: Upload Files to Your Storage

Click on the newly created my-new-storage entry. The AWS console opens, showing your S3 bucket.

  1. Click Upload in the S3 console
  2. Drag and drop your notebooks, datasets, or other files
  3. Click Upload to confirm

Screenshot: 03-upload-files

Note

The console-based upload is available for S3 (AWS) storage. For Azure Blob or GCP Storage, use the respective cloud provider consoles or CLI tools.


Step 4: Clone the JupyterLab Formation

In the App Formations view, locate the JupyterLab formation.

  1. Right-click JupyterLab
  2. Select Clone
  3. Enter my-new-app as the New Label and click Clone

Screenshot: 04-clone-formation


Step 5: Configure the Working Volume

Attach your object storage as the working volume so JupyterLab can access your files.

  1. Right-click the my-new-app formation
  2. Select Configure → Volumes
  3. Under Working Volume, choose Storage and select my-new-storage
  4. Click Configure

Screenshot: 05-configure-volume

Tip

The working volume is mounted as JupyterLab's working directory. Any files you save in JupyterLab's file browser are automatically persisted to the object storage.


Step 6: Launch Your Jupyter App

Click my-new-app to launch it. In the Launch Formation window, click Launch Formation.

Screenshot: 06-launch-lab

Your session appears under the Sessions view. Wait approximately 2 minutes for the session to show a green tick, indicating it is ready.

Screenshot: 07-session-ready

Click the session to connect. JupyterLab opens in a new browser tab.

Screenshot: 08-jupyterlab-interface

In JupyterLab, you can:

  • Access the files you uploaded to the object storage in the file browser
  • Open and run notebooks
  • Install missing Python packages using pip or conda
  • Create new notebooks and save them to the working directory

Note

Files saved in the working directory are persisted to the object storage. Files saved elsewhere on the filesystem exist only in the container image.


Step 7: Create a Machine Image

After installing packages or making other environment customizations, snapshot your session to preserve them.

  1. Return to the RosettaHub dashboard
  2. Right-click your running session in the Sessions view
  3. Select Create Machine Image
  4. Keep Update Originator Formation On Success checked and click Create

Screenshot: 09-create-image

RosettaHub will:

  • Snapshot the session with all newly installed packages into a new machine image
  • The image appears under the Images view (see Images Guide)
  • Automatically update the my-new-app formation to use the new image

Tip

You do not need to snapshot just to save data files. Files in the working directory are automatically persisted to the object storage. Snapshot only when you install new packages or modify the system environment.


Step 8: Share Your App

Share your customized Jupyter app with others:

  1. Right-click the my-new-app formation
  2. Select Share
  3. In Share with, choose Users, Organizations or User Groups and the recipients, then click Share and Done

Screenshot: 10-share-lab

When recipients launch the shared formation, they get an identical JupyterLab environment with all your installed packages. If you shared the object storage as well, they also have access to the same data files.


Key Concepts

Concept Description
App formation A container-based formation running a web application (Jupyter, RStudio, etc.)
Working Volume An object storage mounted as the application's working directory
Machine Image A snapshot of the container with installed packages and system changes
  • Working volume files persist in object storage: they survive machine deletion and image updates
  • Machine image changes (installed packages, system configuration) require a snapshot to persist
  • The working volume and machine image are independent: update one without affecting the other

Next Steps

Troubleshooting

JupyterLab does not show my uploaded files

Ensure that:

  • You configured the correct object storage as the Working Volume (Step 5)
  • You uploaded files to the correct S3 bucket (Step 3)
  • The session was launched after configuring the volume

If you changed the volume configuration after launching, you need to shut down and relaunch the session.

Installed packages are missing after relaunch

Packages installed via pip or conda inside JupyterLab are stored in the container filesystem, not the working volume. To preserve them:

  1. Install the packages you need
  2. Use Create Machine Image (Step 7) to snapshot the session
  3. Ensure Update Originator Formation On Success is checked

Future launches will include the installed packages.

Session takes too long to start

App formation sessions typically start within 2 minutes. If it takes longer:

  • Check your cloud account status and quotas
  • Verify your budget allocation has not been exceeded
  • Try a different cloud region
Cannot access the object storage console

The direct console link opens the AWS S3 console. Ensure that:

  • Your cloud key has the necessary S3 permissions
  • You are logged into the correct AWS account
  • Pop-up blockers are not preventing the new tab from opening