You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+13-10Lines changed: 13 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,24 +4,27 @@ This project adheres to [Semantic Versioning](http://semver.org/).
4
4
5
5
## [4.9.0] - unreleased
6
6
7
-
### Updated
8
-
9
-
- Updated Plotly.js to version 1.54.6. See the [plotly.js CHANGELOG](https://github.com/plotly/plotly.js/blob/v1.54.6/CHANGELOG.md) for more information.
10
-
- Added all cartesian-2d Plotly Express functions, plus `imshow` to Pandas backend with `kind` option
11
-
-`plotly.express.imshow` now uses data frame index and columns names and values to populate axis parameters by default ([#2539](https://github.com/plotly/plotly.py/pull/2539))
12
-
-
13
7
### Added
14
8
15
9
- Added image export support using [Kaleido](https://github.com/plotly/Kaleido). The image export backend can be configured using the new `engine` argument to `plotly.io.to_image` and `plotly.io.write_image`. The `engine` argument may be set to `"kaleido"`, `"orca"`, or `"auto"`. The default is `engine="auto"`, in which case the Kaleido backend is enabled if the `kaleido` package from PyPI is installed, otherwise Orca is used. ([#2613](https://github.com/plotly/plotly.py/pull/2613)).
16
-
-`px.NO_COLOR` constant to override wide-form color assignment in Plotly Express ([#2614](https://github.com/plotly/plotly.py/pull/2614))
10
+
-`plotly.express.timeline()` added as an official alternative to `plotly.figure_factories.create_gantt()` ([#2626](https://github.com/plotly/plotly.py/pull/2626))
11
+
-`create_hexbin_mapbox()` added to Figure Factories, with thanks to [@RenaudLN](https://github.com/RenaudLN) for the impressive contribution!
17
12
-`facet_row_spacing` and `facet_col_spacing` added to Plotly Express cartesian 2d functions ([#2614](https://github.com/plotly/plotly.py/pull/2614))
18
-
-`base` added to Plotly Express `bar` and `bar_polar` functions
19
-
-`plotly.express.timeline()` added as an official alternative to `plotly.figure_factories.create_gantt()`
20
-
-`create_hexbin_mapbox()` added to Figure Factories, with thanks to [@RenaudLN](https://github.com/RenaudLN) for the contribution!
13
+
-`base` added to Plotly Express `bar` and `bar_polar` functions ([#2626](https://github.com/plotly/plotly.py/pull/2626))
14
+
-`px.NO_COLOR` constant to override wide-form color assignment in Plotly Express ([#2614](https://github.com/plotly/plotly.py/pull/2614))
21
15
22
16
### Fixed
23
17
24
18
- trendline traces are now of type `scattergl` when `render_mode="webgl"` in Plotly Express ([#2614](https://github.com/plotly/plotly.py/pull/2614))
19
+
- regression from 4.8.1 whereby `"parent"` was not accepted as part of `path` for `px.sunburst()` and `px.treemap()` ([#2640](https://github.com/plotly/plotly.py/pull/2640))
20
+
-`create_dendrogram()` figure factory now works correctly with `scipy` 1.5.1 ([#2627](https://github.com/plotly/plotly.py/pull/2627))
21
+
22
+
### Updated
23
+
24
+
- Updated Plotly.js to version 1.54.6. See the [plotly.js CHANGELOG](https://github.com/plotly/plotly.js/blob/v1.54.6/CHANGELOG.md) for more information.
25
+
- Added all cartesian-2d Plotly Express functions, plus `imshow`, to Pandas backend with `kind` option ([#2541](https://github.com/plotly/plotly.py/pull/2541))
26
+
-`plotly.express.imshow` now uses data frame index and columns names and values to populate axis parameters by default ([#2539](https://github.com/plotly/plotly.py/pull/2539))
27
+
- Javascript extensions are now build using Node 12, and have an updated `package-lock.json` with many fewer security warnings ([#2636](https://github.com/plotly/plotly.py/pull/2636))
using the either the [`kaleido`](https://github.com/plotly/Kaleido)
140
+
package (recommended, supported as of `plotly` version 4.9) or the [orca](https://github.com/plotly/orca)
141
+
command line utility (legacy as of `plotly` version 4.9).
142
+
143
+
#### Kaleido
144
+
145
+
The [`kaleido`](https://github.com/plotly/Kaleido) package has no dependencies and can be installed
141
146
using pip...
142
147
143
148
```
144
149
$ pip install -U kaleido
145
150
```
146
151
147
152
or conda.
153
+
148
154
```
149
155
$ conda install -c plotly python-kaleido
150
-
```
156
+
```
151
157
152
-
### Static Image Export with Orca
153
-
While Kaleido is now the recommended image export approach because it is easier to install and more widely compatible, image export can also be supported
158
+
#### Orca
159
+
160
+
While Kaleido is now the recommended image export approach because it is easier to install
161
+
and more widely compatible, [static image export](https://plotly.com/python/static-image-export/)
162
+
can also be supported
154
163
by the legacy [orca](https://github.com/plotly/orca) command line utility and the
and orca can be installed according to the instructions in the [orca README](https://github.com/plotly/orca).
170
179
171
-
#### Troubleshooting
172
-
173
-
##### Wrong Executable found
174
-
175
-
If you get an error message stating that the `orca` executable that was found is not valid, this may be because another executable with the same name was found on your system. Please specify the complete path to the Plotly-Orca binary that you downloaded (for instance in the Miniconda folder) with the following command:
Copy file name to clipboardExpand all lines: doc/python/getting-started.md
+26-19Lines changed: 26 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -180,42 +180,49 @@ Please check out our [Troubleshooting guide](/python/troubleshooting/) if you ru
180
180
181
181
See [_Displaying Figures in Python_](/python/renderers/) for more information on the renderers framework, and see [_Plotly FigureWidget Overview_](/python/figurewidget/) for more information on using `FigureWidget`.
182
182
183
-
####Static Image Export Support
183
+
### Static Image Export
184
184
185
-
plotly.py supports static image export using the `to_image` and `write_image`
186
-
functions in the `plotly.io` package. This functionality requires the
187
-
installation of the plotly[orca](https://github.com/plotly/orca) command line utility and the
188
-
[`psutil`](https://github.com/giampaolo/psutil) and [`requests`](https://2.python-requests.org/en/master/) Python packages.
using the either the [`kaleido`](https://github.com/plotly/Kaleido)
187
+
package (recommended, supported as of `plotly` version 4.9) or the [orca](https://github.com/plotly/orca)
188
+
command line utility (legacy as of `plotly` version 4.9).
189
189
190
-
> Note: The `requests` library is used to communicate between the Python process and a local orca server process, it is not used to communicate with any external services.
190
+
#### Kaleido
191
191
192
-
These dependencies can all be installed using conda:
192
+
The [`kaleido`](https://github.com/plotly/Kaleido) package has no dependencies and can be installed
Copy file name to clipboardExpand all lines: doc/python/orca-management.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ jupyter:
36
36
### Overview
37
37
This section covers the lower-level details of how plotly.py can use orca to perform static image generation.
38
38
39
-
> Orca is no longer the recommended way to do static image export. We now recommend Kaleido, as described in the [Static Image Export](/python/static-image-export/) section .
39
+
> As of `plotly` version 4.9, Orca is no longer the recommended way to do static image export. We now recommend Kaleido, as described in the [Static Image Export](/python/static-image-export/) section .
40
40
41
41
Please refer to the [Static Image Export](/python/static-image-export/) section for general information on creating static images from plotly.py figures.
Copy file name to clipboardExpand all lines: doc/python/static-image-export.md
+8-4Lines changed: 8 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,21 +42,23 @@ Plotly figures are interactive when viewed in a web browser: you can hover over
42
42
43
43
<!-- #region -->
44
44
#### Install Dependencies
45
-
Static image generation requires either [Kaleido](https://github.com/plotly/Kaleido) (recommended) or [orca](https://github.com/plotly/orca) (legacy). The `kaleido` package can be installed using pip...
45
+
46
+
Static image generation requires either [Kaleido](https://github.com/plotly/Kaleido) (recommended, supported as of `plotly` 4.9) or [orca](https://github.com/plotly/orca) (legacy as of `plotly` 4.9). The `kaleido` package can be installed using pip...
46
47
```
47
48
$ pip install -U kaleido
48
49
```
49
50
50
51
or conda.
51
52
```
52
53
$ conda install -c plotly python-kaleido
53
-
```
54
+
```
54
55
55
56
While Kaleido is now the recommended approach, image export can also be supported by the legacy [orca](https://github.com/plotly/orca) command line utility. See the [Orca Management](/python/orca-management/) section for instructions on installing, configuring, and troubleshooting orca.
56
57
57
58
<!-- #endregion -->
58
59
59
60
### Create a Figure
61
+
60
62
Now let's create a simple scatter plot with 100 random points of varying color and size.
61
63
62
64
```python
@@ -87,6 +89,7 @@ fig.show()
87
89
```
88
90
89
91
### Write Image File
92
+
90
93
The `plotly.io.write_image` function is used to write an image to a file or file-like python object. You can also use the `.write_image` graph object figure method.
91
94
92
95
Let's first create an output directory to store our images
**Note:** It is important to note that any figures containing WebGL traces (i.e. of type `scattergl`, `heatmapgl`, `contourgl`, `scatter3d`, `surface`, `mesh3d`, `scatterpolargl`, `cone`, `streamtube`, `splom`, or `parcoords`) that are exported in a vector format will include encapsulated rasters, instead of vectors, for some parts of the image.
147
150
148
151
### Get Image as Bytes
152
+
149
153
The `plotly.io.to_image` function is used to return an image as a bytes object. You can also use the `.to_image` graph object figure method.
150
154
151
155
Let convert the figure to a **PNG** bytes object...
@@ -178,7 +182,7 @@ Image(img_bytes)
178
182
179
183
<!-- #region -->
180
184
### Specify Image Export Engine
181
-
If `kaleido` is installed, it will automatically be used to perform image export. If it is not installed, plotly.py will attempt to use orca instead. The `engine` argument to the `to_image` and `write_image` functions can be used to override this default behavior.
185
+
If `kaleido` is installed, it will automatically be used to perform image export. If it is not installed, plotly.py will attempt to use `orca` instead. The `engine` argument to the `to_image` and `write_image` functions can be used to override this default behavior.
182
186
183
187
Here is an example of specifying that orca should be used:
184
188
```python
@@ -199,7 +203,7 @@ Various image export settings can be configured using the `plotly.io.kaleido.sco
199
203
```python
200
204
import plotly.io as pio
201
205
pio.kaleido.scope.default_format ="svg"
202
-
```
206
+
```
203
207
204
208
Here is a complete listing of the available image export settings:
Copy file name to clipboardExpand all lines: doc/python/troubleshooting.md
+11-1Lines changed: 11 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -102,4 +102,14 @@ unset NODE_OPTIONS
102
102
set NODE_OPTIONS=
103
103
```
104
104
105
-
<!-- #endregion -->
105
+
<!-- #endregion -->
106
+
107
+
108
+
### Orca Problems
109
+
110
+
> Note: as of `plotly` version 4.9, we recommend using [`kaleido`](https://github.com/plotly/Kaleido)
111
+
> instead of Orca for [static image export](/python/static-image-export/)
112
+
113
+
If you get an error message stating that the `orca` executable that was found is not valid, this may be because another executable with the same name was found on your system. Please specify the complete path to the Plotly-Orca binary that you downloaded (for instance in the Miniconda folder) with the following command:
0 commit comments