Skip to content

Commit fcd35ed

Browse files
Miles Garnseyclaude
andcommitted
docs: lead with evcxr_display() as the recommended display method
The docs showed lab_display() but users reach for evcxr_display(). Correct the example and remove mention of the lower-level variants. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 6a22af4 commit fcd35ed

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

docs/book/src/fundamentals/jupyter_support.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ No separate JupyterLab extension install is required — the plotly renderer is
2222
with the plotly package (5.x+) and JupyterLab picks it up automatically.
2323

2424
> **Note:** `anywidget` is required for Python's `FigureWidget` interactive features
25-
> but is **not** needed for the Rust `lab_display()` / `notebook_display()` path.
25+
> but is **not** needed for the Rust `evcxr_display()` path.
2626
2727
Next, install the EvCxR Jupyter Kernel:
2828

@@ -55,12 +55,11 @@ let trace = Scatter::new(vec![1.0, 2.0, 3.0], vec![1.0, 4.0, 9.0]);
5555
let mut plot = Plot::new();
5656
plot.add_trace(trace);
5757

58-
plot.lab_display();
58+
plot.evcxr_display();
5959
```
6060

61-
For Jupyter Lab there are two ways to display a plot in the `EvCxR` kernel: either
62-
have the plot object on the last line without a semicolon, or call `Plot::lab_display`
63-
directly — both produce the same result.
61+
`evcxr_display()` works in both Jupyter Lab and Notebook. Alternatively you can
62+
leave the plot on the last line of a cell without a semicolon for the same effect.
6463

65-
For Jupyter Notebook, use `Plot::notebook_display` instead. You can find an example
66-
notebook [here](https://github.com/plotly/plotly.rs/tree/main/examples/jupyter/jupyter_notebook.ipynb).
64+
You can find a full notebook example
65+
[here](https://github.com/plotly/plotly.rs/tree/main/examples/jupyter/jupyter_notebook.ipynb).

0 commit comments

Comments
 (0)