Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Matplotlylib fixes #3143

Merged
merged 128 commits into from
Jun 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
128 commits
Select commit Hold shift + click to select a range
c4068d1
assign Figure object to a variable
Pascalco Sep 11, 2020
40b9af1
WIP accelerated encoding with orjson
jonmmease Dec 5, 2020
f79e318
support fig to dict in io without cloning
jonmmease Dec 5, 2020
55720de
Merge branch 'master' into orjson_encoding
jonmmease Dec 5, 2020
7b3593a
fix clone default
jonmmease Dec 5, 2020
da915d6
Add pio.json.config object to configure default encoder
jonmmease Dec 5, 2020
7b235ef
default_encoder to default_engine
jonmmease Dec 5, 2020
7895b6a
blacken
jonmmease Dec 5, 2020
ce05a68
Handle Dash objects in to_json
jonmmease Dec 6, 2020
3ed5058
feature/include_plotlyjs uses bundles js version, new cdn-latest option
adehad Dec 8, 2020
49a777d
fix other tests that are broken by new 'cdn' option behaviour
adehad Dec 8, 2020
5553f89
make cdn url generator not test exclusive
adehad Dec 8, 2020
4ada560
add new `include_plotlyjs='cdn'`behaviour to changelog
adehad Dec 8, 2020
023ee57
fix tests after poor refactor
adehad Dec 8, 2020
12db5cb
format after using right black version
adehad Dec 8, 2020
7e4b256
format changelog entry better
adehad Dec 8, 2020
4ef6510
add JSON encoding tests
jonmmease Dec 31, 2020
101ba85
add testing of from_plotly_json
jonmmease Dec 31, 2020
67d3670
Better error message when orjson not installed and orjson engine requ…
jonmmease Dec 31, 2020
02c00da
Add orjson as optional testing dependency
jonmmease Dec 31, 2020
99ea6a1
Replace Python 3.5 CI tests with 3.8
jonmmease Dec 31, 2020
d44ec26
Try only install orjson with Python 3.6+
jonmmease Dec 31, 2020
b7d8422
Don't test orjson engine when orjson not installed
jonmmease Dec 31, 2020
ddcd6f5
Try new 3.8.7 docker image since prior guess doesn't exist
jonmmease Dec 31, 2020
33359f3
greater than!
jonmmease Dec 31, 2020
c7c1819
Bump scikit image version for Python 3.8 compatibility
jonmmease Dec 31, 2020
a8d52ab
Try to help Python 2 from getting confused about which json module to…
jonmmease Dec 31, 2020
619838f
Update pandas for Python 3
jonmmease Dec 31, 2020
7c7a272
Revert 3.8 CI updates. Too much for this PR
jonmmease Dec 31, 2020
1708703
Doh
jonmmease Dec 31, 2020
66cab10
Don't skip copying during serialization
jonmmease Dec 31, 2020
56a8945
Rename new JSON functions:
jonmmease Jan 2, 2021
0a51020
Ensure cleaned numpy arrays are contiguous
jonmmease Jan 2, 2021
4e9d64e
Use to_json_plotly in html and orca logic
jonmmease Jan 8, 2021
d4068de
Add orjson documentation dependency
jonmmease Jan 8, 2021
58b7192
Handle pandas Timestamp scalars in orjson engine
jonmmease Jan 8, 2021
974fcba
Rework date and string encoding, add and fix tests
jonmmease Jan 8, 2021
a651a63
default JSON engine to "auto"
jonmmease Jan 8, 2021
af1d88d
Fix expected JSON in html export (no spaces)
jonmmease Jan 8, 2021
1d6acc3
Merge remote-tracking branch 'origin/master' into orjson_encoding
jonmmease Jan 8, 2021
d51fd94
blacken
jonmmease Jan 8, 2021
042c54c
Fix expected JSON in matplotlylib test
jonmmease Jan 8, 2021
ddc1b8f
Fix expected JSON in html repr test
jonmmease Jan 8, 2021
6e6bd44
Update figure-introspection.md
nicolaskruchten Jan 12, 2021
d7928b0
Merge remote-tracking branch 'origin/master' into orjson_encoding
jonmmease Jan 13, 2021
76cc625
Don't drop timezones during serialization, just let Plotly.js ignore …
jonmmease Jan 13, 2021
453461d
Merge branch 'numpy_date_serialization' into orjson_encoding
jonmmease Jan 13, 2021
84ba4b5
no need to skip legacy tests now
jonmmease Jan 13, 2021
340aed3
Only try `datetime_as_string` on datetime kinded numpy arrays
jonmmease Jan 13, 2021
ef60cf5
Update configuration-options.md
nicolaskruchten Jan 18, 2021
6cea61d
Don't store object or unicode numpy arrays in figure. Coerce to lists
jonmmease Jan 21, 2021
93815c1
Try orjson encoding without cleaning first
jonmmease Jan 21, 2021
242d1fa
Merge remote-tracking branch 'origin/master' into orjson_encoding
jonmmease Jan 21, 2021
8a3a4b3
blacken
jonmmease Jan 21, 2021
1de750a
remove scratch file
jonmmease Jan 21, 2021
81f73d5
Remove unused clone
jonmmease Jan 21, 2021
80be8bd
Remove the new "json" encoder
jonmmease Jan 22, 2021
cb54f88
Reorder dict cleaning for performance
jonmmease Jan 22, 2021
62a0ad1
Update troubleshooting.md
nicolaskruchten Feb 4, 2021
1b81b0b
fixing documents
c-chaitanya Feb 14, 2021
bb4a47c
Merge pull request #3073 from c-chaitanya/doc-prod
nicolaskruchten Feb 16, 2021
f5fbc16
document corrections
c-chaitanya Feb 17, 2021
c944597
document corrections
c-chaitanya Feb 18, 2021
249fef0
Update imshow.md
c-chaitanya Feb 18, 2021
c596d2e
Merge pull request #3079 from c-chaitanya/doc-prod
nicolaskruchten Feb 18, 2021
7b6a594
Adds function to sample colorscales
CarlAndersson Apr 7, 2021
0a0fc05
fixed test and mpl 3.4.1 compatibility
fdion Apr 9, 2021
4a250fa
added drawing of legend shapes (lines, markers)
fdion Apr 9, 2021
8627242
Merge branch 'doc-prod'
nicolaskruchten Apr 20, 2021
77b07c5
latex docs (#3157)
nicolaskruchten Apr 21, 2021
db22c9d
Merge branch 'doc-prod'
nicolaskruchten Apr 21, 2021
6387cb3
remove latex redirections
nicolaskruchten Apr 21, 2021
9377627
correct misspells, fix #3074 (#3105)
jmonticolo Apr 21, 2021
8caa7a9
Update dot-plots with mislabeled data (#3063)
acmiyaguchi Apr 22, 2021
211e1f6
Bump y18n from 3.2.1 to 3.2.2 in /packages/javascript/plotlywidget (#…
dependabot[bot] Apr 22, 2021
0142290
Bump elliptic from 6.5.3 to 6.5.4 in /packages/javascript/plotlywidge…
dependabot[bot] Apr 22, 2021
cb82e29
Bump node-fetch from 2.6.0 to 2.6.1 in /packages/javascript/plotlywid…
dependabot[bot] Apr 22, 2021
6bf5849
Replaced 'retrying' dependency with 'tenacity' in plotly package (#2911)
jmsmdy Apr 22, 2021
70877b4
Require python 3.6 and CI maintenance (#3160)
jonmmease Apr 22, 2021
5673b34
Kaleido v5 updates (#3094)
jonmmease Apr 23, 2021
f18576b
CircleCI updates: Unify requirements, drop conda, refactor to reduce …
jonmmease Apr 23, 2021
b343fcc
Fix selection of histograms with multiple traces (#2771)
meffmadd Apr 23, 2021
c60ebbc
Orca to Kaleido
chriddyp Apr 23, 2021
3fc9c82
Merge pull request #3171 from plotly/chriddyp-patch-1
chriddyp Apr 24, 2021
593672d
Merge JS package and create federated extension
Apr 8, 2021
a6c6d99
Rename and rebase
fcollonval Apr 24, 2021
38d0b36
Fix CI
fcollonval Apr 24, 2021
9c8e1f5
Handle pathlib.Path in pio (#2974)
maresb Apr 29, 2021
1fbfa0d
Merge remote-tracking branch 'origin/master' into orjson_encoding
jonmmease Apr 29, 2021
45fdece
Merge pull request #3142 from fcollonval/fcollonval/issue3036
nicolaskruchten May 5, 2021
8d665ac
old file cleanup
nicolaskruchten May 6, 2021
fa292ed
Merge pull request #3184 from plotly/rm_old_files
nicolaskruchten May 6, 2021
1b419ad
Minor fixes
CarlAndersson May 7, 2021
e774d3f
Adds tests
CarlAndersson May 7, 2021
282ed0d
Merge remote-tracking branch 'origin/master' into colorscale-sampling
CarlAndersson May 7, 2021
fb2c139
Code formatting
CarlAndersson May 7, 2021
b597748
Implements getting a colorscale by name
CarlAndersson May 7, 2021
b6e5636
Merge pull request #3186 from CarlAndersson/get-colorscale-by-name
nicolaskruchten May 7, 2021
2096d31
Update _html.py
Lix1993 May 8, 2021
db920c2
Merge pull request #3187 from Lix1993/master
nicolaskruchten May 8, 2021
41a61c8
Fix a type in configuration-options doc
xldrx May 9, 2021
c9ac32e
Merge pull request #3188 from xldrx/patch-1
nicolaskruchten May 9, 2021
10be9df
Merge branch 'master' into colorscale-sampling
CarlAndersson May 10, 2021
1b8ec25
Handle string inputs with get_colorscale
CarlAndersson May 10, 2021
2a59bc0
Merge pull request #3136 from CarlAndersson/colorscale-sampling
nicolaskruchten May 10, 2021
b8d7774
minor fix to get_colorscale
nicolaskruchten May 11, 2021
a33826d
black
nicolaskruchten May 11, 2021
5e327e7
Merge pull request #3193 from plotly/fix_sample_colorscale
nicolaskruchten May 11, 2021
4a13db6
Update figure-structure.md
nicolaskruchten May 16, 2021
5ab8da3
Update contributing.md
nicolaskruchten May 25, 2021
5301dcb
Merge pull request #2955 from plotly/orjson_encoding
nicolaskruchten May 27, 2021
fc9bc42
Fix typo in express/_doc.py
samorajp May 28, 2021
b0a5f77
Merge pull request #3208 from samorajp/patch-1
nicolaskruchten May 28, 2021
b4ecea0
Merge branch 'master' into lock_cdn_ver
nicolaskruchten May 29, 2021
388d9e4
Update creating-and-updating-figures.md
nicolaskruchten May 29, 2021
be0dbc5
Merge pull request #2961 from adehad/lock_cdn_ver
nicolaskruchten May 31, 2021
d99060f
remove 'latest' CDN URLs
nicolaskruchten May 31, 2021
9a55018
Merge pull request #3211 from plotly/rm_latest
nicolaskruchten May 31, 2021
48da65d
bumping to JS 2.0.0 RC 2
nicolaskruchten May 31, 2021
0895266
trying to fix sphinx
nicolaskruchten May 31, 2021
b03f0db
Merge pull request #3213 from plotly/jsrc2
nicolaskruchten May 31, 2021
73291c0
Merge pull request #2766 from Pascalco/patch-1
nicolaskruchten May 31, 2021
fd557e4
Merge pull request #3217 from plotly/doc-prod
nicolaskruchten May 31, 2021
5331cea
5.0.0rc1
nicolaskruchten May 31, 2021
34d61d0
changelog
nicolaskruchten Jun 1, 2021
ad2b540
fixed test and mpl 3.4.1 compatibility
fdion Apr 9, 2021
526d31c
added drawing of legend shapes (lines, markers)
fdion Apr 9, 2021
9be781c
Merge remote-tracking branch 'origin/matplotlylib_fixes' into matplot…
fdion Jun 2, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
431 changes: 154 additions & 277 deletions .circleci/config.yml

Large diffs are not rendered by default.

23 changes: 0 additions & 23 deletions .circleci/create_conda_optional_env.sh

This file was deleted.

15 changes: 0 additions & 15 deletions .circleci/install_miniconda_and_build_.sh

This file was deleted.

4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,7 @@ doc/python/.mapbox_token
doc/.ipynb_checkpoints
tags
doc/check-or-enforce-order.py

packages/javascript/jupyterlab-plotly/lib/
packages/python/plotly/jupyterlab_plotly/labextension/
packages/python/plotly/jupyterlab_plotly/nbextension/index.js*
44 changes: 34 additions & 10 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,34 @@ All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).


## [4.14.3] - 2021-01-12
## UNRELEASED

### Updated

- Updated Plotly.js to version 2.0.0-rc.2. See the [plotly.js CHANGELOG](https://github.com/plotly/plotly.js/blob/CHANGELOG.md) for more information. These changes are reflected in the auto-generated `plotly.graph_objects` module. Notable changes include:
- new `marker.pattern` options for `bar`-like trace types
- dropped support for IE9 and IE10
- dropped support for long-deprecated `graph_objects` like `area` traces and `scatter.(t|r)` and `layout.(radial|angular)axis` attributes
- deprecated `heatmapgl`, `pointcloud` traces as well as all `transform` attributes
- Combined `plotlywidget` into `jupyterlab-plotly` and packaged them as a federated extension [#3142](https://github.com/plotly/plotly.py/pull/3142) with massive thanks to [@fcollonval](https://github.com/fcollonval) for the contribution
- Plotly.js CDN url will now be versioned by default for HTML exports using `include_plotlyjs='cdn'` and for "connected" renderers. [#2961](https://github.com/plotly/plotly.py/pull/2961) with thanks to [@adehad](https://github.com/adehad) for the contribution
- Dropped support for Python older than 3.6 [#3160](https://github.com/plotly/plotly.py/pull/3160)
- Recommending Kaleido by default over Orca [#3094](https://github.com/plotly/plotly.py/pull/3094)
- Replaced `retrying` dependency with `tenacity` [#2911](https://github.com/plotly/plotly.py/pull/2911) with thanks to [@jmsmdy](https://github.com/jmsmdy) for the contribution

### Added

- New functions in `plotly.colors`: `get_colorscale()` and `sample_colorscale()` [#3136](https://github.com/plotly/plotly.py/pull/3136) and [#3186](https://github.com/plotly/plotly.py/pull/3186) with thanks to [@CarlAndersson](https://github.com/CarlAndersson) for the contributions
- Faster JSON encoding when `orjson` is present [#2955](https://github.com/plotly/plotly.py/pull/2955)

### Fixed

- Pandas and Numpy datetime serialization fixes [#3022](https://github.com/plotly/plotly.py/pull/3022)
- Fixed selected points of histograms in FigureWidget [#2771](https://github.com/plotly/plotly.py/pull/2771) with thanks to [@meffmadd](https://github.com/meffmadd) for the contribution


## [4.14.3] - 2021-01-12

- `px.timeline()` now allows `hover_data` formatting of start and end times [3018](https://github.com/plotly/plotly.py/pull/3018)
- Small change to packaging of `plotlywidget` extension for JupyterLab 3 [3021](https://github.com/plotly/plotly.py/pull/3021)

Expand Down Expand Up @@ -135,7 +159,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
faster image rendering and smaller figure size. Additional optional arguments
`binary_backend`, `binary_format` and `binary_compression_level` control
how to generate the b64 string ([#2691](https://github.com/plotly/plotly.py/pull/2691)
- `px.imshow` has a new `constrast_rescaling` argument in order to choose how
- `px.imshow` has a new `contrast_rescaling` argument in order to choose how
to set data values corresponding to the bounds of the color range
([#2691](https://github.com/plotly/plotly.py/pull/2691)

Expand Down Expand Up @@ -239,7 +263,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).

### Added

- The `hover_data` parameter of `px` functions can now be a dictionary. This makes it possible to skip hover information for some arguments or to change the formatting of hover informatiom [#2377](https://github.com/plotly/plotly.py/pull/2377).
- The `hover_data` parameter of `px` functions can now be a dictionary. This makes it possible to skip hover information for some arguments or to change the formatting of hover information [#2377](https://github.com/plotly/plotly.py/pull/2377).
- It's now possible to build a development version of Plotly.py against the build artifacts from a non-`master` branch of Plotly.js, which makes for faster QA and development cycles [#2349](https://github.com/plotly/plotly.py/pull/2349). Thanks [@zouhairm](https://github.com/zouhairm) for this Pull Request!

### Fixed
Expand All @@ -252,7 +276,7 @@ This version includes several performance improvements ([#2368](https://github.c

- Child graph objects (e.g. `figure.layout.xaxis`) are no longer created eagerly during graph object construction. Instead, they are created lazily the first time the property is accessed.
- Property validation is now disabled for select internal operations.
- When used with Python 3.7 and above, ploty.py now takes advantage of [PEP-562](https://www.python.org/dev/peps/pep-0562/) to perform submodule imports lazily. This dramatically improves import times.
- When used with Python 3.7 and above, plotly.py now takes advantage of [PEP-562](https://www.python.org/dev/peps/pep-0562/) to perform submodule imports lazily. This dramatically improves import times.

## [4.6.0] - 2020-03-31

Expand Down Expand Up @@ -290,7 +314,7 @@ This version includes several performance improvements ([#2368](https://github.c

- Jupyterlab extension now compatible with both Jupyterlab 1.2 and 2.0 [#2261](https://github.com/plotly/plotly.py/pull/2261) with thanks to [@consideRatio](https://github.com/consideRatio) for the contribution!
- Fixed a bug when using boolean values for the color argument of px functions [#2127](https://github.com/plotly/plotly.py/pull/2127)
- Corrected import bug which was occuring with old versions of ipywidgets [#2265](https://github.com/plotly/plotly.py/pull/2265)
- Corrected import bug which was occurring with old versions of ipywidgets [#2265](https://github.com/plotly/plotly.py/pull/2265)
- Fixed python 3.8 syntax warning [#2262](https://github.com/plotly/plotly.py/pull/2262), with thanks to [@sgn](https://github.com/sgn) for the contribution!

## [4.5.3] - 2020-03-05
Expand Down Expand Up @@ -365,7 +389,7 @@ This version includes several performance improvements ([#2368](https://github.c
for more information
- The tutorials of the [plotly.py documentation](https://plot.ly/python/) are
now in the main [plotly.py Github repository](https://github.com/plotly/plotly.py). Contributions in order to improve or extend the documentation are very welcome!
- `plotly.express` generated plots no longer have a default height of 600 pixels, instead they inherit the default height of regular figures [#1990](https://github.com/plotly/plotly.py/pull/1990). To restore the old behavior, set `px.defaults.height=600` once per session, or set the `height` keyword arguement to any `px.function()` to 600.
- `plotly.express` generated plots no longer have a default height of 600 pixels, instead they inherit the default height of regular figures [#1990](https://github.com/plotly/plotly.py/pull/1990). To restore the old behavior, set `px.defaults.height=600` once per session, or set the `height` keyword argument to any `px.function()` to 600.

### Fixed

Expand Down Expand Up @@ -439,7 +463,7 @@ section [#1969](https://github.com/plotly/plotly.py/pull/1969).
- The width of a figure produced by the `create_gantt` figure factory now resizes responsively ([#1724](https://github.com/plotly/plotly.py/pull/1724))

### Fixed
- The name of the steps property of `graph_objects.indicator.Guage` has been renamed from `stepss` to `steps`
- The name of the steps property of `graph_objects.indicator.Gauge` has been renamed from `stepss` to `steps`
- Avoid crash in iframe renderers when running outside iPython ([#1723](https://github.com/plotly/plotly.py/pull/1723))

## [4.1.0] - 2019-08-06
Expand Down Expand Up @@ -491,7 +515,7 @@ This is a major release that includes many new features, and a few breaking chan
- Added support for all trace types in `make_subplots` ([#1528](https://github.com/plotly/plotly.py/pull/1528))
- Added support for secondary y-axes in `make_subplots` ([#1564](https://github.com/plotly/plotly.py/pull/1564))
- Support passing a scalar trace object (rather than a list or tuple of trace objects) as the `data` property to the `Figure` constructor ([#1614](https://github.com/plotly/plotly.py/pull/1614))
- Added dictionary-stule `.pop` method to graph object classes ([#1614](https://github.com/plotly/plotly.py/pull/1614))
- Added dictionary-style `.pop` method to graph object classes ([#1614](https://github.com/plotly/plotly.py/pull/1614))
- New `jupyterlab-plotly` JupyterLab extension for rendering figures in JupyterLab. Replaces the `@jupyterlab/plotly-extension` extension, and includes JupyterLab 1.0 support.
- Added new suite of built-in colorscales to the `plotly.colors` module, and support for specifying this wide range of colorscales by name. Also added support for specifying colorscales as a list of colors, in which case the color spacing is assumed to be uniform ([#1647](https://github.com/plotly/plotly.py/pull/1647)).
- Added `sphinx-gallery` renderer for embedding plotly figures in [Sphinx-Gallery](https://sphinx-gallery.github.io/) ([#1577](https://github.com/plotly/plotly.py/pull/1577), [plotly/plotly-sphinx-gallery](https://github.com/plotly/plotly-sphinx-gallery)).
Expand Down Expand Up @@ -1096,7 +1120,7 @@ must be installed:
properties are ignored rather than causing an exception.
- A `to_ordered_dict` method has been added to the `Figure` and `FigureWidget`
classes. This method returns a representation of the figure as a nested
structure of `OrdererdDict` and `list` instances where the keys in each
structure of `OrderedDict` and `list` instances where the keys in each
`OrderedDict` are sorted alphabetically. This method replaces the
`get_ordered` method that was available in version 2, and makes it possible
to traverse the nested structure of a figure in a deterministic order.
Expand Down Expand Up @@ -1517,7 +1541,7 @@ gone.
## [1.12.10] - 2016-11-28
### Updated
- `FF.create_violin` and `FF.create_scatterplotmatrix` now by default do not print subplot grid information in output
- Removed alert that occured when downloading plot images offline. Please note: for higher resolution images and more export options, consider making requests to our image servers. See: `help(py.image)` for more details.
- Removed alert that occurred when downloading plot images offline. Please note: for higher resolution images and more export options, consider making requests to our image servers. See: `help(py.image)` for more details.

### Added
- Plot configuration options for offline plots. See the list of [configuration options](https://github.com/Rikorose/plotly.py/blob/master/plotly/offline/offline.py#L189) and [examples](https://plot.ly/javascript/configuration-options/) for more information.
Expand Down
38 changes: 19 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Our recommended IDE for Plotly’s Python graphing library is Dash Enterprise’

`pip install plotly==4.14.3`

Inside [Jupyter notebook](https://jupyter.org/install) (installable with `pip install "notebook>=5.3" "ipywidgets>=7.5"`):
Inside [Jupyter](https://jupyter.org/install) (installable with `pip install "jupyterlab>=3" "ipywidgets>=7.6"`):

```python
import plotly.graph_objects as go
Expand Down Expand Up @@ -95,37 +95,22 @@ or conda.
conda install -c plotly plotly=4.14.3
```

### Jupyter Notebook Support

For use in the Jupyter Notebook, install the `notebook` and `ipywidgets`
packages using `pip`:

```
pip install "notebook>=5.3" "ipywidgets>=7.5"
```

or `conda`:

```
conda install "notebook>=5.3" "ipywidgets>=7.5"
```

### JupyterLab Support

For use in JupyterLab, install the `jupyterlab` and `ipywidgets`
packages using `pip`:

```
pip install jupyterlab "ipywidgets>=7.5"
pip install jupyterlab>=3 "ipywidgets>=7.6"
```

or `conda`:

```
conda install jupyterlab "ipywidgets>=7.5"
conda install jupyterlab>=3 "ipywidgets>=7.6"
```

Then run the following commands to install the required JupyterLab extensions (note that this will require [`node`](https://nodejs.org/) to be installed):
For JupyterLab 2 or earlier, run the following commands to install the required JupyterLab extensions (note that this will require [`node`](https://nodejs.org/) to be installed):

```
# Basic JupyterLab renderer support
Expand All @@ -137,6 +122,21 @@ jupyter labextension install @jupyter-widgets/jupyterlab-manager plotlywidget@4.

Please check out our [Troubleshooting guide](https://plotly.com/python/troubleshooting/) if you run into any problems with JupyterLab.

### Jupyter Notebook Support

For use in the Jupyter Notebook, install the `notebook` and `ipywidgets`
packages using `pip`:

```
pip install "notebook>=5.3" "ipywidgets>=7.5"
```

or `conda`:

```
conda install "notebook>=5.3" "ipywidgets>=7.5"
```

### Static Image Export

plotly.py supports [static image export](https://plotly.com/python/static-image-export/),
Expand Down
8 changes: 0 additions & 8 deletions bld.bat

This file was deleted.

9 changes: 0 additions & 9 deletions build.sh

This file was deleted.

19 changes: 0 additions & 19 deletions build_for_conda.md

This file was deleted.

22 changes: 2 additions & 20 deletions contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,19 +166,6 @@ and
[`pip`](https://pip.pypa.io/en/stable/reference/pip_install/#install-editable)
documentation on _development mode_.

### ipywidgets development install

Run the following commands in your virtual environment to use the
development version of `FigureWidget`,
```bash
(plotly_dev) $ jupyter nbextension enable --py widgetsnbextension
(plotly_dev) $ jupyter nbextension install --py --symlink --sys-prefix plotlywidget
(plotly_dev) $ jupyter nbextension enable --py --sys-prefix plotlywidget
```
To make plotly plots show up in JupyterLab, you also need to [install the plotly jupyterlab extensions][plotly-jl].

[plotly-jl]: https://plot.ly/python/getting-started/#jupyterlab-support-python-35

### Configure black code formatting

This repo uses the [Black](https://black.readthedocs.io/en/stable/) code formatter,
Expand Down Expand Up @@ -224,7 +211,7 @@ make that pull request!


## Update to a new version of Plotly.js
First update the version of the `plotly.js` dependency in `packages/javascript/plotlywidget/package.json`.
First update the version of the `plotly.js` dependency in `packages/javascript/jupyterlab-plotly/package.json`.

Then run the `updateplotlyjs` command with:

Expand All @@ -238,12 +225,7 @@ the `plotly/plotly.js` GitHub repository (and place them in
`plotly/package_data`). It will then regenerate all of the `graph_objs`
classes based on the new schema.

For dev branches, it is also possible to use `updateplotlyjsdev --devrepo reponame --devbranch branchname` to update to development versions of `plotly.js`. This will fetch the `plotly.js` in the CircleCI artifact of the branch `branchname` of the repo `reponame`. If `--devrepo` or `--devbranch` are omitted, `updateplotlyjsdev` defaults using `plotly/plotly.js` and `master` respectively. For example, to update to a version from a pull request to the `plotly/plotly.js` repo that is numbered 555, run:

```bash
$ cd packages/python/plotly
$ python setup.py updateplotlyjsdev --devbranch pull/555
```
For dev branches, it is also possible to use `updateplotlyjsdev --devrepo reponame --devbranch branchname` to update to development versions of `plotly.js`. This will fetch the `plotly.js` in the CircleCI artifact of the branch `branchname` of the repo `reponame`. If `--devrepo` or `--devbranch` are omitted, `updateplotlyjsdev` defaults using `plotly/plotly.js` and `master` respectively.

## Testing

Expand Down
2 changes: 1 addition & 1 deletion doc/python/2D-Histogram.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ fig = go.Figure(go.Histogram2d(x=x, y=y, histnorm='probability',
fig.show()
```
### Sharing bin settings between 2D Histograms
This example shows how to use [bingroup](https://plotly.com/python/reference/histogram/#histogram-bingroup) attribute to have a compatible bin settings for both histograms. To define `start`, `end` and `size` value of x-axis and y-axis seperatly, set [ybins](https://plotly.com/python/reference/histogram2dcontour/#histogram2dcontour-ybins) and `xbins`.
This example shows how to use [bingroup](https://plotly.com/python/reference/histogram/#histogram-bingroup) attribute to have a compatible bin settings for both histograms. To define `start`, `end` and `size` value of x-axis and y-axis separately, set [ybins](https://plotly.com/python/reference/histogram2dcontour/#histogram2dcontour-ybins) and `xbins`.

```python
import plotly.graph_objects as go
Expand Down
4 changes: 2 additions & 2 deletions doc/python/3d-isosurface-plots.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ fig = go.Figure(data=go.Isosurface(
fig.show()
```

#### Isosurface with Addtional Slices
#### Isosurface with Additional Slices

Here we visualize slices parallel to the axes on top of isosurfaces. For a clearer visualization, the `fill` ratio of isosurfaces is decreased below 1 (completely filled).

Expand Down Expand Up @@ -235,4 +235,4 @@ fig.show()
```

#### Reference
See https://plotly.com/python/reference/isosurface/ for more information and chart attribute options!
See https://plotly.com/python/reference/isosurface/ for more information and chart attribute options!
2 changes: 1 addition & 1 deletion doc/python/3d-mesh.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ IFrame(snippet_url + '3d-mesh', width='100%', height=630)

### Mesh Tetrahedron

In this example we use the `ì`, `j` and `k` parameters to specify manually the geometry of the triangles of the mesh.
In this example we use the `i`, `j` and `k` parameters to specify manually the geometry of the triangles of the mesh.

```python
import plotly.graph_objects as go
Expand Down
Loading