observablehq / feedback

Customer submitted bugs and feature requests
42 stars 3 forks source link

Feature Request: Import Notebooks #209

Open triptych opened 3 years ago

triptych commented 3 years ago

Is your feature request related to a problem? Please describe. Right now the best and virtually only way to create notebooks is through the web UI. This is awesome, but in the spirit of Observable truly embracing the web community it is contributing to via notebooks, and exported HTML pages, there should be some kind of JSON format that can be IMPORTED as well. This would appear under the "NEW" dropdown. Just like you could create a new notebook from a template, you could point to a JSON file which defines a notebook's cells. When the JSON file is read and imported, the result is a new notebook which has it's cells created from the JSON data. Bonus points if you could choose to EXPORT your own notebook to this JSON format.

Describe the solution you'd like Under "new" have in addition to templates a url field or "upload" which can point to a specially formatted JSON file which when read creates a new Notebook with the fields filled in from the JSON data.

Describe alternatives you've considered without access to the Observable page creation api I don't know of a real alternative.

Additional context This would allow folks to create Observable notebooks in other editors like VS Code.

dlaliberte commented 2 years ago

This feature is needed now more than ever, with the new policy that notebooks are always public unless you pay for privacy.

Kreijstal commented 1 month ago

It is a struggle to import notebooks on observable I had to turn to starboard

https://starboard.gg/nb/noGtJvP