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

quarto format support #17

Open
githubpsyche opened this issue Oct 30, 2022 · 0 comments
Open

quarto format support #17

githubpsyche opened this issue Oct 30, 2022 · 0 comments

Comments

@githubpsyche
Copy link

githubpsyche commented Oct 30, 2022

Quarto is a scientific and technical publishing system built on Pandoc. It's been growing in popularity lately, now has its own vscode extension, and has received support in recent updates to jupytext. If you have quarto installed, Jupytext lets you edit .qmd documents as notebooks in Jupyter, and pair .ipynb notebooks with .qmd notebooks.

The current version of vscode-jupytext doesn't support the quarto format, but a small change to packages.json's `"contributes" / "menus" / "explorer/context" list adds support for the format. We just add:

                {
                    "command": "jupyter.openAsPairedNotebook",
                    "when": "resourceLangId == quarto"
                }

We also have to update the extension's jupytext version to one with quarto file format. I confirmed 1.14.1 works.

And finally, to allow notebooks instantiated by vscode-jupytext by this command to update the source qmd file, we probably still need to address #15 with a change like the one I suggested.

Interoperation with the quarto extension doesn't seem perfect though.

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

1 participant