|
1 |
| -# JupyterCon Tutorial |
| 1 | +# The Jupyter Widget Ecosystem |
2 | 2 |
|
3 |
| -[JupyterCon](https://jupytercon.com) will use this template to create a new repository for each tutorial, with speakers added as collaborators. |
| 3 | +## Tutorial, JupyterCon 2020 |
4 | 4 |
|
5 |
| -We also include here [instructions for tutorial speakers](https://github.com/jupytercon/tutorial2020/blob/master/Tutorial_Speakers_Guide.md). |
6 |
| -Please follow these instructions carefully, and email us if you have questions: [[email protected]](mailto:[email protected]) |
| 5 | +## Installation on your own computer |
7 | 6 |
|
8 |
| -You can delete this file (or rename it) and replace it by a README file that targets the contents of this repository, populated with your tutorial materials. |
| 7 | +*You do not have to install the software on your computer to do the tutorial. JupyterCon will provide an environment for going through the materials. Follow these instruction if you want to run it on your computer.* |
9 | 8 |
|
10 |
| -## Tutorial Chairs for 2020 |
| 9 | +The code in the tutorial has been written using Python 3; many of the dependencies may not be available for Python 2.7. |
11 | 10 |
|
12 |
| -- Tania Allard, Microsoft |
13 |
| -- Gerard Gorman, University College London |
| 11 | +We **strongly recommend** using the Anaconda Python distribution. You can install either the full [anaconda distribution](https://www.continuum.io/downloads) (very extensive, but large) or [miniconda](https://conda.io/miniconda.html) (much smaller, only essential packages). |
14 | 12 |
|
15 |
| -## General information |
| 13 | +Almost all of the examples will work in either the regular Jupyter notebook or in JupyterLab. The instructions below assume you will be using JupyterLab. |
16 | 14 |
|
17 |
| -JupyterCon 2020 is an online event that places heavy emphasis on providing learning opportunities for all participants. |
18 |
| -It is a project of [NumFOCUS](https://numfocus.org), with a fully volunteer team of organizers. |
| 15 | +There are also download instructions below for installation using pip, which should work with any Python distribution. |
19 | 16 |
|
20 |
| -### What is NumFOCUS? |
| 17 | +## Download this repository |
21 | 18 |
|
22 |
| -> NumFOCUS is a 501(c)-3 non-profit in the United States. |
23 |
| -Its mission is to promote open practices in research, data, and scientific computing by serving as a fiscal sponsor for open source projects and organizing community-driven educational programs. |
24 |
| -NumFOCUS envisions an inclusive scientific and research community that utilizes actively supported open source software to make impactful discoveries for a better world. |
| 19 | +You can do this with either |
| 20 | +`git clone https://github.com/jupytercon/2020-widgets-tutorial` at the command |
| 21 | +line or by downloading this repostiory as a [Zip file](https://github.com/jupytercon/2020-widgets-tutorial/archive/master.zip). |
25 | 22 |
|
26 |
| -## Format for tutorials |
| 23 | +## conda installation instructions |
27 | 24 |
|
28 |
| -Tutorials will consist of on-demand video presentations, and written materials presented in Jupyter notebooks. |
29 |
| -The notebooks should be complete and polished, amply narrated worked-out examples and exercises for participants. |
| 25 | +The steps below will get you a working environment. |
30 | 26 |
|
31 |
| -Tutorial basic format: |
| 27 | +```bash |
| 28 | +conda env create -f environment.yml |
32 | 29 |
|
33 |
| -- Three or four Jupyter notebooks (at minimum), each notebook corresponding to "one lesson" – printed, estimate between 10–20 pages, or 17 to 35 min to read, per notebook. |
34 |
| -- Estimate for the material to be 1.5 to 3 hours to work through interactively. |
35 |
| -- The notebooks are complemented with videos, 25–30 min in length (not longer); at least one video per notebook. |
36 |
| -- Optional exercises for participants, instrumented for auto-grading. |
37 |
| -- One full tutorial may add up to total-time-on-task by the learners of about 4.5 hours. |
| 30 | +conda activate widgets-jcon20 |
38 | 31 |
|
39 |
| -## License |
| 32 | +# Create a kernel for this environment |
| 33 | +ipython kernel install --name widgets-jcon20 --display-name widgets-jcon20 --sys-prefix |
| 34 | +``` |
40 | 35 |
|
41 |
| -The source materials for JupyterCon tutorials are copyright of their authors. |
42 |
| -We ask that materials be shared under standard public licenses. We recommend code be under BSD-3 or MIT license, and other materials be under a CC-BY Creative Commons Attribution license. |
| 36 | +### Windows users |
| 37 | +The installation instructions were tested on an up-to-date version of Windows 10 Professional. If you encounter any issues on Windows please open an issue or contact us through slack. |
| 38 | + |
| 39 | +## pip installation instructions |
| 40 | + |
| 41 | +If you are not using the anaconda python distribution, please use the instructions below. |
| 42 | + |
| 43 | +```bash |
| 44 | +pip install -r requirements.txt |
| 45 | + |
| 46 | +# Create a kernel for this environment |
| 47 | +ipython kernel install --name widgets-tutorial --display-name widgets-tutorial --sys-prefix |
| 48 | +``` |
| 49 | + |
| 50 | +## Install JupyterLab extensions |
| 51 | + |
| 52 | +In order to install the JupyterLab extensions, you need `nodejs` to be installed. If you use `conda` it should have been already installed for you when you created your environment. |
| 53 | + |
| 54 | + |
| 55 | +If you do not use `conda`, see [https://nodejs.org/en/download/](https://nodejs.org/en/download/) or [https://nodejs.org/en/download/package-manager/](https://nodejs.org/en/download/package-manager/) for download and installation instructions. |
| 56 | + |
| 57 | + |
| 58 | +Now you can install the JupyterLab extensions: |
| 59 | + |
| 60 | +```bash |
| 61 | +# This may take several minutes |
| 62 | +jupyter labextension install @jupyter-widgets/jupyterlab-manager @jupyter-widgets/jupyterlab-sidecar bqplot |
| 63 | +``` |
| 64 | + |
| 65 | +<!-- **Only if we use them: `ipysheet ipytree`** --> |
| 66 | + |
| 67 | +## Check your installation |
| 68 | + |
| 69 | +To check your installation, please download the script [install_check.py](https://raw.githubusercontent.com/jupytercon/2020-widgets-tutorial/master/install_check.py) and run it: |
| 70 | + |
| 71 | +```bash |
| 72 | +python install_check.py |
| 73 | +``` |
| 74 | + |
| 75 | +## Tutorial materials |
| 76 | + |
| 77 | +To get the tutorial materials, clone this repository. *We anticipate making changes to the tutorial content through the end of October 2, 2020.* |
| 78 | + |
| 79 | +To update your copy of the tutorial materials, navigate in a terminal to folder these materials are in then run `git pull`. An alternative is to download the repository again as a zip file. |
| 80 | + |
| 81 | +## Any ipywidgets or custom widgets library question? |
| 82 | + |
| 83 | +Please join us on the Gitter channel: https://gitter.im/jupyter-widgets/Lobby |
| 84 | + |
| 85 | +## Running into trouble? |
| 86 | + |
| 87 | +Please let us know! You can open an issue on this repository by clicking "Issues" under the repo name on GitHub, then the "New Issue" button in the upper right. |
0 commit comments