Giter VIP home page Giter VIP logo

jupyterlab-demo's Introduction

JupyterLab Demonstration

Build Status

Binder

This repository contains some demonstrations of JupyterLab, the next generation user interface of Project Jupyter.

Installation

The demo requires mamba, available as part of Mambaforge and the package requirements are described in environment.yml

To install the environment and demofiles, we use pyinvoke. To install pyinvoke with mamba call:

mamba install -c conda-forge invoke packaging pyyaml

Create the environment

To create the conda environment with all the dependencies and jupyterlab extensions for the demo, run:

invoke environment  # optionally --env-name=my-env-name

The default environment name is jupyterlab-demo.

To create the environment and remove previous installation, call:

invoke environment --clean

Activate/deactivate the environment

To activate the conda environment, run:

source activate jupyterlab-demo

To deactivate the conda environment, run:

source deactivate

Additional demo files

The demo includes files from a number of other repositories. To install these files, run:

invoke demofiles

To remove demofiles and download again all:

invoke demofiles --clean

R Language support

To add R language support, run:

invoke r

Julia Language support

To add Julia language support follow the instructions here.

Uninstalling

To uninstall the demofiles and enviornment, call:

invoke clean

Demo guide

The basic outline of the JupyterLab demo is described in the file jupyterlab.md.

External Repositories

Our invoke demofiles clones repos from other authors. The details of these repos are as follows:

Name Author License
PythonDataScienceHandbook/LICENSE-CODE Jake Vanderplas MIT
PythonDataScienceHandbook/LICENSE-TEXT Jake Vanderplas CC-BY-NC-ND-3.0
altair Jake Vanderplas BSD 3-clause
Urban-Data-Challenge Data Canvas CC-BY-NC-3.0
QuantEcon.notebooks QuantEcon BSD 3-clause "New" or "Revised" License
TCGA Gross et. al. None Listed
TensorFlow-Examples Aymeric Damien MIT

jupyterlab-demo's People

Contributors

afshin avatar akhmerov avatar axiezai avatar blink1073 avatar bollwyvl avatar carreau avatar ddavidebor avatar dharmaquark avatar ellisonbg avatar ericcousineau-tri avatar fcollonval avatar fperez avatar github-actions[bot] avatar gnestor avatar ian-r-rose avatar jasongrout avatar jtpio avatar jzf2101 avatar kirstiejane avatar krassowski avatar mariusvniekerk avatar minrk avatar sylvaincorlay avatar thewbear avatar yuvipanda avatar zsailer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jupyterlab-demo's Issues

#31 change copyright date.

#31 change Copyright date from 2016 to 2017. IIRC the copyright date should be the date of first copyright and is implicitly YYYY-Present. Should it be changed back ? @ellisonbg ?

'touch' is not recognized as an internal or external command, operable program or batch file.

Running on Windows -

(base) C:\Code\jupyterlab-demo>invoke demofiles
cleaning demofiles
creating demofolder
cloning repos into demo folder demofiles
Cloning into 'PythonDataScienceHandbook'...
Cloning into 'Urban-Data-Challenge'...
Cloning into 'altair'...
Cloning into 'QuantEcon.notebooks'...
Cloning into 'TCGA'...
Cloning into 'TensorFlow-Examples'...
Cloning into 'bqplot'...
'touch' is not recognized as an internal or external command,
operable program or batch file.

It happens because this line:
ctx.run('touch move_this_file.txt; mkdir move_it_here')

'touch' program, doesn't exists in Windows, that why it fails.

Maybe, the code can be updated to check if it is Windows,
and run equivalent command, like:
type nul > move_this_file.txt

The same way the code does for rmdir.

Thanks

`INSTALL.txt` errors

@jasongrout

Invalid requirement: 'bqplot=0.9.0b10' = is not a valid operator. Did you mean == ?

- Writing config: /Users/4d/anaconda/envs/jlabdemo/etc/jupyter/labconfig X is not version compatible with installed JupyterLab version 0.16.2 Expects JupyterLab version ^0.13.1 from packaged module [email protected]/lib/widget.js Expects JupyterLab version ^0.13.1 from packaged module [email protected]/lib/plugin.js

Collecting dask-labextensions Could not find a version that satisfies the requirement dask-labextensions (from versions: ) No matching distribution found for dask-labextensions

Merge Fork?

@jasongrout @ellisonbg : @fperez asked me to use this demo to start putting together initial user documentation for lab. I can't write issues on the forks, but since @jasonsgrout 's fork is far ahead, is it possible we could PR the forks?

Install JupyterLab renderers with conda

Once conda-forge/staged-recipes#14245 is merged and the packages available on conda, we should be able to remove this task:

jupyterlab-demo/tasks.py

Lines 44 to 57 in 5a5eb6b

@task
def build(ctx, env_name=env_name, kernel=True):
'''
Builds an environment with appropriate extensions.
'''
ctx.run("""
{0!s} activate {1!s} &&
jupyter labextension install @jupyterlab/[email protected] --no-build &&
jupyter labextension install @jupyterlab/[email protected] --no-build &&
jupyter lab clean && jupyter lab build --dev-build=False --minimize=False
""".format(source, env_name).strip().replace('\n', ''))
if kernel:
ctx.run("{0!s} activate {1!s} && ipython kernel install --name {1!s} --display-name {1!s} --sys-prefix".format(source, env_name))

And add the dependencies to:

Which should make the Binder build faster.

Geojson of lightning strikes

We could include a geojson file of lightning strikes, and maybe a large csv of them, you know, for lightning talks :). It'd be fun to give a talk where the data was all puns on lightning talks.

ResolvePackageNotFound: - xeus-cling[version='<=0.11']

"invoke environment" fails:

(base) <repo>\jupyterlab-demo-master>invoke environment --env-name=jupyterlab-demo
creating environment jupyterlab-demo
Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working... failed

ResolvePackageNotFound:
  - xeus-cling[version='<=0.11']

btw:

(base) ... >conda config --add channels conda-forge --yes
usage: conda-script.py [-h] [-V] command ...
conda-script.py: error: unrecognized arguments: --yes

Repository got banned from mybinder.org

Hello from mybinder.org,

we had a bit of a rough evening since you merged #73. We aren't quite sure why this caused us problems or what is wrong with the build for this repository. However we observed very high CPU load, and eventually noticed that lots of ipython demo pods were running but none from jupyterlab. The first time our CPU usage went through the roof was exactly when you merged #73. So for the moment we banned this repository. After the first few minutes it seems like this resolved our problem.

You can try and build the repository locally with repo2docker or making a fork which should not be banned.

You can find us on gitter: https://gitter.im/jupyterhub/binder or we discuss in this issue

Build is failing

Looks like the last build has not been passing in Travis with:

AttributeError: module 'tornado.web' has no attribute 'asynchronous' 

Possibly related to:
conda-forge/nbconvert-feedstock#27

Note that that currently this repo does not work on binder (running notebook simply hangs)

Install kernels for demos

I don't think that the invoke commands install the kernels for the julia and R notebooks.

Either document that they need to be installed separately or install if possible.

Test Invoke Scripts on Windows?

Based on the documentation I've read so far from invoke, it's unclear to me if the shell commands in the invoke script will run on Windows. Could someone confirm?

solving environment failed

Tried 'invoke environment' inside the repo directory using:
miniconda 4.5.11
python 3.6.5

invoke environment fails with the following messages:
Solving environment: failed

UnsatisfiableError: The following specifications were found to be in conflict:

  • scikit-learn=0.18
  • xtensor-blas=0.12
    Use "conda info " to see the dependencies for each package.

Any help is appreciated!

Installation vs Makefile

Per suggestion from @fperez , I tried installing the fork from @jasongrout but make demo doesn't handle the environment setup from INSTALL.txt Should there be changes to the makefile or readme to take care of environment setup for the demo?

Missing some datafiles

I tried to get the demos working for a presentation this morning. Even after using invoke to install the data files, the files could not be found. Are some of the datafiles missing? Or is it a path issue on my part?

WebSocket error 502 on mybinder.org

I'm getting this result from chrome console on mybinder.org when notebook is trying to connect to kernel.

WebSocket connection to 'wss://hub.mybinder.org/user/jupyterlab-jupyterlab-demo-azimq5mq/api/kernels/267f4698-ce2a-443d-aab9-46bd61a49ffb/channels?session_id=8d0e4978-7cb6-4184-82b3-4bf6fa323698&token=Qy1Nd1A6RDWoJEL5lUqo_w' failed: Error during WebSocket handshake: Unexpected response code: 502

Meanwhile, the top right status dot keeps showing Kernel Reconnecting.

When I visit the normal notebook (path: /notebooks/demo/Lorenz.ipynb), 500 : Internal Server Error is returned.

Failed to create the environment - Can't find any collection named 'tasks'!

Using:

  • Windows 10
  • Miniconda
  • Anaconda Prompt to run conda
(base) C:\>conda --version
conda 4.4.10

Installation was ended successfully

(base) C:\>conda install -c conda-forge invoke pyyaml
Solving environment: done

# All requested packages already installed.

But creating the environment failed -

(base) C:\>invoke environment
Can't find any collection named 'tasks'!

Thanks.

yml profiles

@willingc @ellisonbg @jasongrout Based on an earlier conversation, we think it would make sense to have profiles for different talks in a yml file. An invoke script would copy relevant files into a folder for the talk. This way we can customize talks to different audiences.

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.