-
Notifications
You must be signed in to change notification settings - Fork 10
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
Pluto integration #125
Comments
Yes this would be an awesome integration! As someone who sees the potential use for this in my area of industry, let me know if I can help in any way. |
What do you have in mind with this integration? This backend just takes
and have that "just work" for |
I can take a shot at an idea. I don't know how Pluto, QuartoNotebookRunner (lets abreviate this to QNR), or Quarto work under the hood, so this could be completely wrong. First question would be: If I had a pluto notebook that I kept linear in terms of cell order and stuck to the quarto script format, would this be rendered correctly already with QNR? IdeaThis is under the assumption that quarto passes the whole script to QNR and QNR does the parsing of the file. If quarto passes the cell chunks to QNR to then run, then this idea breaks down. My idea would be: 1. Tell QNR that it is a pluto notebook.It could be QNR determining that on its own by looking for the 2. QNR would then let Pluto or PlutoDependencyExplorer to parse the file.Hopefully we can keep the comments within the cell blocks to keep quarto commands so we can adjust outputs. I know macros parse comments out so it may have to be parsed back in afterwards depending on how pluto works. By parsing the file I imagine having a list of 3. Parsed input/outputs passed to quarto to renderNow with this list quarto can then take that information to build the pdf/html/etc. |
That is correct, The main question we need to address is still #125 (comment), what do you expect from the high-level user-interface for this? Just run |
I guess the overall goal for me is to make it even more high level (no CLI). I want just an export or preview button inside pluto sort of like vscode extension where you can see the preview and saving the file will auto-render it again. But I would be fine with Most of the people I hope to convince to use pluto do not know the terminal, julia, quarto, or python. Our main tool for calculations is excel, so the more things I can pull away from a CLI, the better. |
Thanks. If this is just about getting nice Quarto renders of Pluto notebooks (which would be great) then the most straightforward way would be a feature directly in That's pretty much what this package does internally anyway. We generate JSON output for executed |
This one is a different request. Doing something like that requires first making |
For my work teaching, it would be great if topic explanations written as pluto files could be integrated into a website generated with quarto. The pluto files will then contain interactivity which will be rendered to html, so that the explanations can be read and figures seen. For interactivity, or even playing with the code, it would be great to have a link to the pluto file that can be pasted into a running pluto instance. Or even a link that opens the file in binder for example. |
is this abandoned? I think this would be really great! I've been waiting for this for months now and I hope it could become concrete some day.. Marimo (which is mainly inspired by Pluto) is working on something similar: https://docs.marimo.io/guides/exporting.html#embed-marimo-outputs-in-html-using-islands Demo's here: https://docs.marimo.io/guides/island_example.html |
It isn't abandoned, just waiting on someone that wants this to take the time to do something about it. As in my previous comments, most of what's being requested here needs to be implemented upstream unless I'm misunderstanding what others have requested. |
Just adding a comment here that what was discussed further above, that quarto passes the input document as-is to QuartoNotebookRunner, is not quite true. There are shortcodes and other things that may modify the input markdown a bit before it reaches us. So quarto in general needs to be able to analyze the input, too, so it cannot just be something completely special that only QuartoNotebookRunner knows how to handle. |
Hi! It would be great if Pluto notebooks could work as an input format for Quarto! I talked briefly about this with @MichaelHatherly and with the Quarto devs at JupyterCon last year :) I believe that quite a nice integration is possible!
This issue could be used to collect ideas on what the integration would look like, and to find out whether there is interest in this feature.
The text was updated successfully, but these errors were encountered: