You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment, closing and reopening a notebook will delete all drawings from a canvas.
Also, re-executing a cell will delete all drawings from a canvas.
Current workaround: Copy the drawings to the clipboard, re-execute the cell and paste it into the fresh canvas.
Saving the state to the metadata of the notebook cell would be nice to have!
E.g. buttons for
"Save tldraw state for this cell"
"Load tldraw state for this cell"
"Clear tldraw state for this cell"
Further idea: auto-saving the state for every interaction.
For reference: there is a similar button for ipywidgets
The text was updated successfully, but these errors were encountered:
First version of saving and loading drawings is now possible withTldrawMakeStaticTldraw
But that's not the final solution.
Re-rendering the whole widget with interactive canvers after notebook restart is currently not possible, but that's a jupyterlab issue that might get solved at some point jupyterlab/jupyterlab#15361
I also have the idea to convert drawings to static formats like TldrawMakeStaticSVG and TldrawMakeStaticPNG, I've made an issue for that here: #16
At the moment, closing and reopening a notebook will delete all drawings from a canvas.
Also, re-executing a cell will delete all drawings from a canvas.
Current workaround: Copy the drawings to the clipboard, re-execute the cell and paste it into the fresh canvas.
Saving the state to the metadata of the notebook cell would be nice to have!
E.g. buttons for
Further idea: auto-saving the state for every interaction.
For reference: there is a similar button for ipywidgets
The text was updated successfully, but these errors were encountered: