Skip to content

Commit

Permalink
pydeck: Reduce JupyterLab bundle size (#4110)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajduberstein authored and Andrew Duberstein committed Jan 29, 2020
1 parent d96b6e2 commit 4dda32f
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions bindings/pydeck/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,16 +117,18 @@ python3 setup.py install

## Development

Build the deck.gl project at the root of this repository:

```bash
git clone https://github.com/uber/deck.gl/
cd deck.gl
# Build the entire deck.gl project
yarn bootstrap
```

```bash
cd deck.gl/bindings/pydeck
From the directory of this README, build pydeck:

```bash
# Create a virtual environment
python3 -m venv env3
. env3/bin/activate
Expand All @@ -136,15 +138,20 @@ pip install -r requirements-dev.txt
pip install -e .
```

Jupyter Lab is the recommended environment for development testing with pydeck. To enable development with Jupyter Lab, run:
JupyterLab is the recommended environment for development testing with pydeck.
To develop with JupyterLab, run from this directory:

```bash
# Execute in deck.gl/modules/jupyter-widget directory
jupyter labextension install @jupyter-widgets/jupyterlab-manager@1.0.3 --no-build
# cd ../../modules/jupyter-widget
jupyter labextension install @jupyter-widgets/jupyterlab-manager --no-build
jupyter labextension install . --no-build
jupyter labextension link .
cd -
jupyter lab build
```

The `jupyter lab --watch` command can be used to provide hot reloading for development.


### Tests

Expand Down

0 comments on commit 4dda32f

Please sign in to comment.