gpoore / codebraid-preview-vscode

Preview Pandoc Markdown in VS Code, and execute code blocks and inline code with Codebraid
Other
29 stars 4 forks source link

Codebraid Preview extension for VS Code, "Unsupported URI Scheme vscode-notebook-cell" #16

Closed tsippel12345 closed 1 year ago

tsippel12345 commented 1 year ago

I get the following error when trying to enable Codebraid Preview of a ipynb file: "Unsupported URI Scheme vscode-notebook-cell. Codebraid Preview only supports file URIs.

Using VS Code 1.76 on Ubuntu.

gpoore commented 1 year ago

Codebraid Preview only supports Markdown files. What are you wanting to do with ipynb files? I'm getting ready to release a new version that will also support other formats like Org, RST, and LaTeX, so more may be possible in the future.

tsippel12345 commented 1 year ago

Many thanks Geoffrey and sorry to disturb you.

Your plugin looks very nice for .md BTW! (I typically have embedded code cells as well). I was looking for something that provides the side-by-side live preview functionality of your plugin, but for .ipynb within VS Code. The standard of comparison in my mind (I lack much experience), is Overleaf, but for .ipynb.

Best Regards, Travis


Travis Sippel, Ph.D.
Associate Professor
Dept. Mechanical Engineering, Iowa State University
2529 Union Drive, 2090 Black Engineering Bldg.
Ames, IA 50011
***@***.***, ***@***.***
Mobile: 515-635-1694,<http://voice.google.com/calls?a=nc,%2B15156351694> Tel: 515-294-3803,<http://voice.google.com/calls?a=nc,%2B15152943803> Fax: 515-598-7794<http://voice.google.com/calls?a=nc,%2B15155987794>
https://sites.google.com/view/emcl

________________________________
From: Geoffrey Poore ***@***.***>
Sent: Friday, March 10, 2023 10:36 AM
To: gpoore/codebraid ***@***.***>
Cc: ***@***.*** ***@***.***>; Author ***@***.***>
Subject: Re: [gpoore/codebraid] Codebraid Preview extension for VS Code, "Unsupported URI Scheme vscode-notebook-cell" (Issue gpoore/codebraid-preview-vscode#16)

Codebraid Preview only supports Markdown files. What are you wanting to do with ipynb files? I'm getting ready to release a new version that will also support other formats like Org, RST, and LaTeX, so more may be possible in the future.

—
Reply to this email directly, view it on GitHub<https://github.com/gpoore/codebraid-preview-vscode/issues/16>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AZ3SUSWHTEX4BFOU4TZUP43W3NKARANCNFSM6AAAAAAVWKI7ZA>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
gpoore commented 1 year ago

I've just released a new version that is compatible with Jupyter notebooks. There are some limitations compared to other formats: no scroll sync, and only update on save. Here's the relevant part of the updated documentation:

The preview is compatible with Jupyter notebooks (ipynb). Simply add the following to settings.json, under codebraid.preview.pandoc.build:

"*.ipynb": {
    "reader": "ipynb",
    "preview": {
        "html": {
            "defaults": {},
            "options": []
        }
    },
    "export": {}
},

Jupyter notebooks have some limitations compared to other formats. Scroll sync is not currently supported. The preview currently only updates when the notebook is saved; the preview does not update live as you type.

VS Code already provides a built-in notebook editor. A Pandoc-based preview for Jupyter notebooks will primarily be useful when Pandoc filters or similar features are used to customize a notebook during export.