Skip to content

Commit eb91c0f

Browse files
committed
noeval write_image calls in static-image-export doc
1 parent a07e9a5 commit eb91c0f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

doc/python/static-image-export.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -109,19 +109,19 @@ If you are running this notebook live, click to [open the output directory](./im
109109

110110
plotly.py can output figures to several raster image formats including **PNG**, ...
111111

112-
```python
112+
```python .noeval
113113
fig.write_image("images/fig1.png")
114114
```
115115

116116
**JPEG**, ...
117117

118-
```python
118+
```python .noeval
119119
fig.write_image("images/fig1.jpeg")
120120
```
121121

122122
and **WebP**
123123

124-
```python
124+
```python .noeval
125125
fig.write_image("images/fig1.webp")
126126
```
127127

@@ -130,19 +130,19 @@ fig.write_image("images/fig1.webp")
130130

131131
plotly.py can also output figures in several vector formats including **SVG**, ...
132132

133-
```python
133+
```python .noeval
134134
fig.write_image("images/fig1.svg")
135135
```
136136

137137
**PDF**, ...
138138

139-
```python
139+
```python .noeval
140140
fig.write_image("images/fig1.pdf")
141141
```
142142

143143
and **EPS** (requires the poppler library)
144144

145-
```python
145+
```python .noeval
146146
fig.write_image("images/fig1.eps")
147147
```
148148

@@ -199,12 +199,12 @@ Image(img_bytes)
199199
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.
200200

201201
Here is an example of specifying that orca should be used:
202-
```python
202+
```python .noeval
203203
fig.to_image(format="png", engine="orca")
204204
```
205205

206206
And, here is an example of specifying that Kaleido should be used:
207-
```python
207+
```python .noeval
208208
fig.to_image(format="png", engine="kaleido")
209209
```
210210

0 commit comments

Comments
 (0)