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: Sync with Github Gist / Repo #284

Open
triptych opened this issue Nov 10, 2021 · 5 comments
Open

Feature request: Sync with Github Gist / Repo #284

triptych opened this issue Nov 10, 2021 · 5 comments

Comments

@triptych
Copy link

Is your feature request related to a problem? Please describe.
I wish I could "back up" my notebook on github gist. Meaning if there was some way to serialize a notebook into a JSON format or some other format that could be synchronized with a github gist or repo.

Describe the solution you'd like
Export to Gist button - requires you to link to your github account. Creates a gist with all your cells, etc.
Import from Gist button - again requires you to link the notebook to a Github url - updates the notebook with the changes from the gist ( shows as a new entry in the notebook's history )

Describe alternatives you've considered
Manually exporting a notebook then uploading as a github repo -- very tedious and has lots of extra "stuff" that one doesn't need when just wanting to keep an archive or edit in a plain text editor.

Additional context
Add any other context or screenshots about the feature request here.

@CobusT
Copy link
Collaborator

CobusT commented Nov 10, 2021

Is the request here to be able to back it up, or to also restore it, or even synchronize it? Trying to understand the 'why' behind the request. I can infer a few things here:
a) Wanting a backup outside of Observable as a future-proof copy of your work
b) Wanting to use create notebooks outside of Observable and use Observable for rendering and sharing
c) ...

Can you please elaborate a bit what the main driver for this request is?
Thanks!

@triptych
Copy link
Author

The main driver is to be able to create notebooks outside of Observable in a format that is "exchangeable". A way to export and import Observable notebooks outside the current implementation.

@bmschmidt
Copy link

Just want to +1 this, as an ideal version of a feature that would also be partially realized by #209. I outlined my current use case on Observable Forums and was pointed to this issue.

The situation is this. I have a course textbook written in markdown that includes code blocks in R and Python. I can currently compile that into a Jupyter notebook or an RStudio document; I’d like to also be able to publish chapters to observable with js code blocks turned into cells, and markdown or HTML rendered as is.

In my ideal world I’d be depositing some kind of JSON manifest of cells, much like an .ipynb file, into a git repo that would instantly be the live version of the observable notebook. I anticipate the editing flow would be one-way, with observablehq downstream from the editing.

Some kind of two-way editing is possible with RMarkdown and with IPython JSON; would love to be able to use Observable in some of the same workflows.

@hellonearthis
Copy link

I do like this idea.

A GISTS might be too small due to the archiving of file attachments (GISTS have a 10MB limit). A REPO would work better.

@tomlarkworthy
Copy link

I made this that backups to GitHub (need to train my copilot) https://observablehq.com/@tomlarkworthy/github-backups

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants