Replies: 4 comments
-
Whatever we use, it should probably replace the
Where
Where It looks like adding metadata to a notebook might not actually be possible from within the notebook itself... Could pickle, or separately json serialise |
Beta Was this translation helpful? Give feedback.
-
Would need to ensure magics like |
Beta Was this translation helpful? Give feedback.
-
It does look like adding metadata really can only be done outside of the notebook context - which maybe makes sense idk. I think the server ContentsManager is kinda in charge of editing it. We could add a share-notebook option in the file toolbar in JupyterLab? We'd have to then use |
Beta Was this translation helpful? Give feedback.
-
I think describing what the aim here would be is good. So with little modification it should be possible for a user to send a notebook for a Cassini project to another user who doesn't have the same project or possibly any project and for them to be able to run the code successfully. This includes loading data from other tiers and saving data. I think it's reasonable for someone to require a user to install Cassini to run the notebook, but we shouldn't expect them to have to set it up. When someone shares something like this, it's reasonable I think for us to expect them to copy and maybe zip up all the bits required. Any paths would have to be switched to relative paths. I'm not averse to something a bit crazy where to share, a user makes the We can then create a directory, maybe called 'share-name', and every time a Cassini path to a file that exists is called, we create a copy with a relative path inside this directory. This would require some sort of monkeypatchi g to enable capturing these paths and checking them, which is possible I think. |
Beta Was this translation helpful? Give feedback.
-
For notebooks relying on cassini to do things like fetch data, one certainly can't share this notebook with another user who doesn't have cassini installed.
In the case they do have cassini installed, unless things are configured identically between users, notebooks will not run correctly.
I think adding something like:
I.e. to share you swap these lines over.
At that point I'm not completely sure what to do...
There needs to be some way of freezing the appropriate paths at the point
project.share
is called. For example adding metadata to the notebook file, which would probably be a mapping from children to relative paths.Beta Was this translation helpful? Give feedback.
All reactions