Coder Social home page Coder Social logo

jupytercon-jupyterlab-tutorial's Introduction

JupyterCon 2018 JupyterLab tutorial.

This repository contain material and instructions to follow the JupyterLab tutorial during JupyterCon 2018.

During the tutorial, feel free to get on the Gitter jupyterlab/jupyterlab channel for help and updates.

If you'd like to use JupyterLab without installing anything, you can go to the JupyterLab demo Binder. You can then open a terminal and clone this repo with:

git clone https://github.com/jupyterlab/jupytercon-jupyterlab-tutorial.git

Installation

Please read the following section and install the required software ahead of time. We may ask you to update versions of the software more closely to the tutorial date.

Please do not rely on cloud hosting to follow this tutorial, as the network connection may be unreliable. If possible, come to the tutorial with a computer where you have administrative privileges.

For this tutorial, we are standardizing on a conda-based python distribution (miniconda or Anaconda). We may not be able to help with installation issues if you are using a different python distribution.

Software installation

  1. Install either the full anaconda distribution (very large, includes lots of conda packages by default) or miniconda (much smaller, with only essential packages by default, but any conda package can be installed).

  2. To get the tutorial materials, clone this repository. Please plan to update the materials shortly before the tutorial.

    git clone https://github.com/jupyterlab/jupytercon-jupyterlab-tutorial.git
    

    To update the materials:

    cd jupytercon-jupyterlab-tutorial
    git pull
    

    Feel free to open an issue or send a pull request to update these materials if things are unclear.

  3. Set up your environment.

    Create a conda environment:

    conda create -n jlabtutorial -c conda-forge --override-channels --yes python=3.6 pip cookiecutter notebook pandas=0.23 nodejs jupyterlab ipywidgets matplotlib
    

    (You could instead create the environment from the supplied environment file with conda env create -f jupytercon-jupyterlab-tutorial/environment.yml)

    Activate the conda environment:

    conda activate jlabtutorial
    

    Install extra JupyterLab extensions:

    jupyter labextension install @jupyter-widgets/jupyterlab-manager @jupyterlab/geojson-extension @jupyterlab/fasta-extension @jupyterlab/celltags @jupyterlab/shortcutui @jupyterlab/statusbar @jupyterlab/toc
    

If you open multiple terminal windows make sure to activate the environment in each of them. Your terminal prompt should be preceded by the name of the current environment, for example:

(jlabtutorial) ~/jupytercon-jupyterlab-tutorial $

Starting JupyterLab

Enter the following command in a new terminal window to start JupyterLab.

$ jupyter lab

Removing environment

You can delete the environment by using the following in a terminal prompt.

conda env remove --name jlabtutorial --yes

This will not delete any data, but only the conda environement named jlabtutorial .

Optional packages

We are demonstrating a few packages not installed in the above lists. These are optional, and not required for the exercises in this tutorial.

To install these, first activate the tutorial environment:

conda activate jlabtutorial

Then install the python packages:

conda install -c conda-forge --override-channels bqplot ipyleaflet ipympl ipyvolume pythreejs
pip install sidecar

and install the JupyterLab extensions:

jupyter labextension install bqplot jupyter-leaflet ipyvolume jupyter-threejs  @jupyter-widgets/jupyterlab-sidecar jupyterlab-drawio

Troubleshooting

If you experience an out-of-memory error, you can increase the memory available:

NODE_OPTIONS=--max_old_space_size=4096 jupyter lab build

or

NODE_OPTIONS=--max_old_space_size=4096 jupyter labextension install ...

This increases the available memory for the build process to 4Gb.

jupytercon-jupyterlab-tutorial's People

Contributors

carreau avatar gitter-badger avatar jasongrout avatar jzf2101 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

jupytercon-jupyterlab-tutorial's Issues

JupyterCon JupyterLab tutorial

@jasongrout, @blink1073

This is the base of JupyterCon JupyterLab tutorial based on what we did at SciPy.
There is likely a couple of things we'd like to update. like making sure it does not refer to SciPy (the conference).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.