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

Discussion: storage of notebook assets #760

Closed
lungben opened this issue Dec 9, 2020 · 3 comments
Closed

Discussion: storage of notebook assets #760

lungben opened this issue Dec 9, 2020 · 3 comments

Comments

@lungben
Copy link
Contributor

lungben commented Dec 9, 2020

There are several use cases for storing assets (non-notebook files) alongside Pluto notebooks:

Possibilities to store assets:

a) Base64 encoded inside the notebook.jl file

Pro:

  • The notebook including assets is a single file
  • Easy to share by e-mail (if not too large)

Contra:

  • Does not work so nicely together with version control (git) - changes in assets cause not really easy to understand git diffs of the notebook file
  • It is not easily possible to extract or modify the asset files

b) Make each notebook a zip (or tar) archive

Pro:

  • The notebook including assets is a single file
  • Easy to share by e-mail (if not too large)
  • Easy to extract or modify asset files

Contra:

  • Does not work so nicely together with version control (git) - git only sees if the archive has changed, but not what parts of it. Thus, code modifications inside the notebook.jl file cannot be tracked.

c) Make each notebook a folder

Pro:

  • Works nicely with version control (git)
  • Easy to extract or modify asset files

Contra:

  • Folders cannot be directly sent per e-mail but must be zipped beforehand. This point could be mitigated by offering a "download as zip" export option in Pluto, plus the option of opening a zip archive (compressed notebook directory) in Pluto.

Currently, my favorite is option c), but maybe there is a different option we have not thought about yet?
Happy to discuss!

@fonsp
Copy link
Owner

fonsp commented Dec 9, 2020

Would it be alright to move this to our notion page? That way we can all edit the pros and cons

@lungben
Copy link
Contributor Author

lungben commented Dec 10, 2020

Sure 😄

@lungben
Copy link
Contributor Author

lungben commented Dec 10, 2020

@lungben lungben closed this as completed Dec 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants