Skip to content

Guide > Tools > Positron #1654

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

Merged
merged 17 commits into from
May 29, 2025
Merged

Guide > Tools > Positron #1654

merged 17 commits into from
May 29, 2025

Conversation

cwickham
Copy link
Collaborator

@cwickham cwickham commented May 5, 2025

A first pass at Guide > Tools > Positron by making minor changes to Guide > Tools > VS Code:

Most content is included from:

  • tools/_code-oss-editors.md
  • tools/_code-oss-notebook.md
  • tools/_code-oss-visual-editor.md

Copy link
Contributor

github-actions bot commented May 5, 2025

🚀 Deployed on https://deploy-preview-1654.quarto.org

@github-actions github-actions bot temporarily deployed to pull request May 5, 2025 20:43 Inactive
@cwickham cwickham changed the title WIP: Guide > Tools > Positron Guide > Tools > Positron May 5, 2025
@cwickham cwickham marked this pull request as ready for review May 5, 2025 21:03
@cwickham cwickham requested a review from juliasilge May 6, 2025 16:11
Copy link
Collaborator

@juliasilge juliasilge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is looking so great! 🙌 Thank you so much for working on this.

I noted some places where I don't think the screenshots can be re-used between Positron and VS Code, because of changes we've made to the UI. I think the other thing to consider is how to link to OpenVSX for the Positron pages.

Let me know if you have questions on any of that!


Positron bundles both the Quarto CLI and the VS Code Quarto extension so it comes ready to work with Quarto out-of-the-box.

The [Quarto VS Code Extension](https://marketplace.visualstudio.com/items?itemName=quarto.quarto) provides the support for Quarto in Positron, including:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In Positron, we can't use the MS marketplace, so I think it would be better to link to OpenVSX here:
https://open-vsx.org/extension/quarto/quarto


The [Quarto VS Code Extension](https://marketplace.visualstudio.com/items?itemName=quarto.quarto) provides the support for Quarto in Positron, including:

- Integrated render and preview for Quarto documents.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Integrated render and preview for Quarto documents.
- Integrated render and preview for Quarto documents

- Live preview for LaTeX math as well as Mermaid and Graphviz diagrams

The Quarto extension integrates directly with Positron's native R and Python features.
For example, here the Quarto extension runs a Python cell in the active Python Console and shows contextual help for Python functions.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Positron has an integrated help pane also, so it is a little awkward to be showing the Quarto help pane. What do you think about highlighting something else here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I think that makes sense. I'll redo with an image preview.


![](/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."}

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.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.
The Quarto extension works well with both other extensions bundled with Positron, like the Jupyter extension, as well as those you might install yourself separately, like the Julia extension.

@@ -51,11 +29,11 @@ Note that on the Mac you should use `Cmd` rather than `Ctrl` as the prefix for a

The **Quarto: Preview** command renders the default format of the currently active document. If you want to preview a different format, use the **Quarto: Preview Format** command:

![](images/vscode-preview-format-menu.png){.border fig-alt="The top of the Visual Studio code editor. The editor title menu is expanded and the Preview Format command is available on the menu."}
![](/docs/tools/images/vscode-preview-format-menu.png){.border fig-alt='The top of the {{< meta tool.name >}} editor. The editor title menu is expanded and the Preview Format command is available on the menu.'}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This screenshot is very clearly not Positron. Is it possible to have two versions here?


## Code Snippets

Code snippets are templates that make it easier to enter repeating code patterns (e.g. code blocks, callouts, divs, etc.). Execute the **Insert Snippet** command within a Quarto document to insert a markdown snippet:

![](images/vscode-snippets.png){.border fig-alt="Quarto document with dropdown 'Select a snippet' dropdown, the first item (bold - insert bold text) is selected."}
![](/docs/tools/images/vscode-snippets.png){.border fig-alt="Quarto document with dropdown 'Select a snippet' dropdown, the first item (bold - insert bold text) is selected."}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we have a Positron screenshot here?

@@ -185,18 +188,18 @@ VSCode uses IntelliSense to suggest snippets or possible values for a specific f

If you have a large document use the outline view for quick navigation between sections:

![](images/vscode-outline.png){.border fig-alt="Quarto document with outline view shown in left-hand panel. The outline shows the section headers of the quarto documents."}
![](/docs/tools/images/vscode-outline.png){.border fig-alt="Quarto document with outline view shown in left-hand panel. The outline shows the section headers of the quarto documents."}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we have a Positron screenshot here?


## Code Snippets

Code snippets are templates that make it easier to enter repeating code patterns (e.g. code blocks, callouts, divs, etc.). Execute the **Insert Snippet** command within a Quarto document to insert a markdown snippet:

![](images/vscode-snippets.png){.border fig-alt="Quarto document with dropdown 'Select a snippet' dropdown, the first item (bold - insert bold text) is selected."}
![](/docs/tools/images/vscode-snippets.png){.border fig-alt="Quarto document with dropdown 'Select a snippet' dropdown, the first item (bold - insert bold text) is selected."}

### IntelliSense
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this section, we should say "Positron" rather than "VSCode".


You can also use the **Go to Symbol in Editor** command or keyboard shortcut <kbd>Ctrl+Shift+O</kbd> for type-ahead navigation of the current document's outline.

Use the **Go to File** command <kbd>Ctrl+P</kbd> to navigate to other files and the **Go to Symbol in Workspace** command <kbd>Ctrl+T</kbd> for type-ahead navigation to all headings in the workspace:

![](images/vscode-workspace-symbols.png){.border fig-alt="Quarto document in VS Code with command palette open showing the files in the project with the entered term, 'margin'."}
![](/docs/tools/images/vscode-workspace-symbols.png){.border fig-alt='Quarto document in {{< meta tool.name >}} with command palette open showing the files in the project with the entered term, \'margin\'.'}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we have a Positron screenshot here?

---
title: "Visual Editing in VS Code"
---

## Overview

The [Quarto VS Code Extension](https://marketplace.visualstudio.com/items?itemName=quarto.quarto) includes a visual markdown editor that supports all of Quarto's markdown syntax including tables, citations, cross-references, footnotes, divs/spans, definition lists, attributes, raw HTML/TeX, and more:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the Positron version of this page (or both!) we shouldn't link to the MS marketplace.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do think this page could use some updates to be more accurate for Positron. For example, you can't switch between source and visual mode from the editor menu but you can from the new bar.

The screenshots that show the tab bar should be updated, since we have made UI changes there; the screenshots of just the command palette are OK. 👍

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For example, you can't switch between source and visual mode from the editor menu but you can from the new bar.

I added the new bar. I think you can still switch from the editor menu, at least I generated a screenshot in Positron that shows it 🤷🏻‍♀️

The screenshots that show the tab bar should be updated, since we have made UI changes there; the screenshots of just the command palette are OK

Updated any that showed any Positron UI elements.

Copy link
Contributor

🚀 Deployed on https://deploy-preview-1654.quarto.org

@github-actions github-actions bot temporarily deployed to pull request May 12, 2025 21:52 Inactive
Copy link
Contributor

🚀 Deployed on https://deploy-preview-1654.quarto.org

@github-actions github-actions bot temporarily deployed to pull request May 12, 2025 21:58 Inactive
Copy link
Contributor

🚀 Deployed on https://deploy-preview-1654.quarto.org

@github-actions github-actions bot temporarily deployed to pull request May 13, 2025 18:31 Inactive
Copy link
Contributor

🚀 Deployed on https://deploy-preview-1654.quarto.org

@github-actions github-actions bot temporarily deployed to pull request May 13, 2025 21:57 Inactive
@cwickham
Copy link
Collaborator Author

@juliasilge The main "Guide > Tools > Positron" page now has exclusively Positron screenshots (including dark ones for dark mode) 🚀 Would you like to take another quick look?

Copy link
Collaborator

@juliasilge juliasilge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is looking great! 🙌

We are still making some changes to the UI (especially that new toolbar) so I think it would be a good idea to set aside some time in July or so to update the screenshots with the first non-beta release of Positron. Let me know if you have any questions on that, including on timing!


If you have multiple declared formats you can render all of them. You can also selectively render any of the declared formats or other standard formats like PDF and MS Word.

## Render on Save
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be good to highlight the toolbar checkbox in this section as well.

@github-actions github-actions bot temporarily deployed to pull request May 29, 2025 21:31 Inactive
@cwickham cwickham merged commit c71396c into main May 29, 2025
4 checks passed
@cwickham cwickham deleted the positron branch May 29, 2025 22:09
github-actions bot pushed a commit that referenced this pull request May 29, 2025
* Add Positron notebook page

* Add Positron Visual Editor

* Fix file path

* Add Positron landing

* Add to Guide

* Add screenshots

* Re-organize

* Fix explicit tool names

* Use image preview instead of contextual help

* Marketplace -> VSX

* Use correct classes and images

* Propogate change to later section

* Show better Preview button in dark mode

* More Positron specific screenshots + dark

* More Positron specific screenshots

* Add mention of toolbar Render on Save checkbox

(cherry picked from commit c71396c)
Copy link
Contributor

Successfully created backport PR for prerelease:

cwickham added a commit that referenced this pull request May 29, 2025
* Add Positron notebook page

* Add Positron Visual Editor

* Fix file path

* Add Positron landing

* Add to Guide

* Add screenshots

* Re-organize

* Fix explicit tool names

* Use image preview instead of contextual help

* Marketplace -> VSX

* Use correct classes and images

* Propogate change to later section

* Show better Preview button in dark mode

* More Positron specific screenshots + dark

* More Positron specific screenshots

* Add mention of toolbar Render on Save checkbox

(cherry picked from commit c71396c)

Co-authored-by: Charlotte Wickham <charlotte.wickham@posit.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants