quarto-dev / quarto-cli

Open-source scientific and technical publishing system built on Pandoc.
https://quarto.org
Other
3.57k stars 293 forks source link

Button to open rendered ipynb in google colab #1718

Open jjallaire opened 1 year ago

jjallaire commented 1 year ago

Discussed in https://github.com/quarto-dev/quarto-cli/discussions/1690

Originally posted by **schochastics** August 4, 2022 Hi there, What would be the best way (if there is any) to include a button on a rendered ipynb which opens the notebook on google colab (see example at the bottom)? I could of course do it manually, but I have a lot of notebooks to render for a website which I pull from github. Is this maybe possible with ipynb filters? If so, any pointer would be greatly appreciated since I am an utter python noob. ![](https://user-images.githubusercontent.com/17147355/182957896-a0086914-b46e-44ca-a86a-195a2643dca4.png) /Edit: After some more research I found that [jupyterbook](https://jupyterbook.org/en/stable/intro.html) has this feature. ![colab2](https://user-images.githubusercontent.com/17147355/183077327-bcb81198-02c2-4733-980e-6a042cfae893.png)
jjallaire commented 1 year ago

Hi there, just transferred this over into issues. I agree that this should be a built-in feature!

In the meantime, I'd suggest writing a filter extension or custom format that automatically includes the "Open in Collab" button at the top of the body. See https://quarto.org/docs/extensions/

dkapitan commented 1 year ago

Adding to this, I would like to be able to download the notebook itself, too. So basically the rightmost icon in Jupyter Book.

jjallaire commented 1 year ago

Thanks, yes, we are working on this now so it should be available in v1.3.

sebffischer commented 8 months ago

What is the status here? I also think having a download button for .qmd files in general would be very handy! :) Thanks for all your efforts.

mcanouil commented 8 months ago

Thanks for your interest in this. When there is an update you'll see that in the issue (this is true on every issues). If there is no activity, it means there was no (official/public) progress on it.

For now, it is not schedule for any milestone, meaning the team is working on other things (i.e., dashboard, manuscript, cross-reference).