Skip to content

Commit c6857fd

Browse files
committed
Use image preview instead of contextual help
1 parent 8cd203d commit c6857fd

File tree

5 files changed

+10
-3
lines changed

5 files changed

+10
-3
lines changed
41.6 KB
Loading

docs/tools/_examples/python.qmd

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,9 @@ ax.plot(theta, r)
2424
ax.set_rticks([0.5, 1, 1.5, 2])
2525
ax.grid(True)
2626
plt.show()
27-
```
27+
```
28+
29+
![](500px-Celestial_spiral_with_a_twist.jpg){#fig-star}
30+
31+
Photo by ALMA (ESO/NAOJ/NRAO)/H. Kim et al. - [Original](https://www.eso.org/public/images/potw1710a/), [CC BY 4.0](https://creativecommons.org/licenses/by/4.0)
32+
787 KB
Loading
141 KB
Loading

docs/tools/positron/index.qmd

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ The [Quarto VS Code Extension](https://marketplace.visualstudio.com/items?itemNa
1616
- Live preview for LaTeX math as well as Mermaid and Graphviz diagrams
1717

1818
The Quarto extension integrates directly with Positron's native R and Python features.
19-
For example, here the Quarto extension runs a Python cell in the active Python Console and shows contextual help for Python functions.
19+
For example, here the Quarto extension runs a Python cell in the active Python Console and shows a preview of an included image.
2020

21-
![](/docs/tools/images/positron-python.png){.border .preview-image fig-alt="Screen shot of Positron editor with three vertical sections. The leftmost includes the file explorer, and quarto help. The second pane is the source code for a quarto file with python code, and the active Python Console. The third shows the Environment and Plots for the active console populated with the output of the code cells."}
21+
![](/docs/tools/images/positron-python.png){.border .preview-image .content-light fig-alt="Screen shot of Positron editor with three vertical sections. The leftmost includes the file explorer, and quarto assist pane. The second pane is the source code for a quarto file with python code, and the active Python Console. The third shows the Environment and Plots for the active console populated with the output of the code cells."}
22+
23+
![](/docs/tools/images/positron-python-dark.png){.border .content-dark .preview-image fig-alt="Screen shot of Positron editor with three vertical sections. The leftmost includes the file explorer, and quarto assist pane. The second pane is the source code for a quarto file with python code, and the active Python Console. The third shows the Environment and Plots for the active console populated with the output of the code cells."}
2224

2325
The Quarto extension also works well with other extensions bundled with Positron, like Jupyter extension, and those you might install separately, like the Julia extension.
2426

0 commit comments

Comments
 (0)