Skip to content
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

[Feature request] VSCode extension for Quarto #149

Closed
jooyoungseo opened this issue Oct 26, 2021 · 8 comments
Closed

[Feature request] VSCode extension for Quarto #149

jooyoungseo opened this issue Oct 26, 2021 · 8 comments

Comments

@jooyoungseo
Copy link
Collaborator

Do you have any plans to develop VSCode extension tailored for Quarto? Please correct me if I am wrong, but currently, users have to manually type required commands in terminal within VSCode.

Another idea is to support qmd files via REditorSupport/vscode-R.

@jjallaire
Copy link
Collaborator

Yes, we absolutely do plan on on developing a VSCode extension for Quarto.

@jjallaire
Copy link
Collaborator

Note that currently you can get a pretty nice workflow in VS Code by executing quarto preview on a qmd or ipynb. The document will be rendered and shown in a web browser, then every time the file is saved it is automatically re-rendered and the browser refreshed. details here: https://quarto.org/docs/tools/vscode.html#workflow

@amichuda
Copy link

amichuda commented Jan 5, 2022

Hi! This is a really great software and thanks so much for working on it.

A quick way to add some nice rstudio-like functionality to this, and make it possible to run code directly from qmd files would be to push this pull request over the finish line which would allow you to have multiple code lenses in one file and have multiple ways of denoting code blocks for the python interactive window: microsoft/vscode-jupyter#4876

I sadly don't have enough to finish it, but I think it would make a quarto workflow much more streamlined. Please message me if you want to talk further!

@jjallaire
Copy link
Collaborator

Thanks! Yes if that got merged it would indeed enable some pretty nice integration.

We are hoping to do more work on VS Code integration soon so will keep an eye on that PR! (don't have time to work on it now unfortunately)

@joshhopkins
Copy link

This, together with [[wikilinks]] (Foam, etc), would be incredible.

@gvelasq
Copy link

gvelasq commented Feb 17, 2022

Would a VS Code extension for Quarto use the native VS Code Notebook API to work with .ipynb files, and if so, would Quarto use traditional Jupyter kernels to execute code in R, Python, etc.?

There is ongoing work to integrate R into VS Code notebooks at REditorSupport/vscode-R#394, however it is not clear that there is a plan to adapt IRKernel for this purpose: IRkernel/IRkernel#685

@jjallaire
Copy link
Collaborator

Quarto already works pretty well w/ VS Code notebooks: https://quarto.org/docs/get-started/hello/vscode.html

The kernel in this case is whatever the user chooses.

For notebooks, the VS Code extension will focus on render/preview workflow and possibly a custom markdown cell renderer. For qmd files, the VS Code extension will focus on syntax highlighting, completion, etc.

@jjallaire
Copy link
Collaborator

We have starting working on our VS Code extension. The current release is here: https://marketplace.visualstudio.com/items?itemName=quarto.quarto&ssr=false#overview

@amichuda, we've got Code Lens Run actions working using the jupyter.execSelectionInteractiveCommand (which now allows you to pass a string to execute arbitrary code in the interactive python console).

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

No branches or pull requests

6 participants