Skip to content
This repository has been archived by the owner on Nov 25, 2023. It is now read-only.

wonkybream/jupyterdev

Repository files navigation

Jupyterlab environment

Build

My Jupyterlab development environment. Allows faster way to test and iterate my ideas.

I am adding components whenever I need one.

Usage

There's a docker volume attached, your projects are persisted there.

  1. Start Jupyterlab environment
    docker-compose up -d --build
  2. Link and token for your environment is in logs
    docker-compose logs jupyterlab
    
    jupyterlab_1  |     To access the server, open this file in a browser:
    jupyterlab_1  |         file:///home/wonky/.local/share/jupyter/runtime/jpserver-7-open.html
    jupyterlab_1  |     Or copy and paste one of these URLs:
    jupyterlab_1  |         http://localhost:8888/lab?token=xxxxx
    jupyterlab_1  |      or http://127.0.0.1:8888/lab?token=xxxxx
  3. Start new project (do this inside terminal in the Jupyterlab)
    start-project.sh "myproject"

Installing package to same kernel your notebook uses

The start-project.sh script creates and installs a kernel with own virtualenv.
In order to install packages directly from notebook you have to use correct Python executable.

import sys
!{sys.executable} -m pip install cryptography

Configurations