Closed robinsonkwame closed 2 years ago
This can help locate the session given its id: https://docs.bokeh.org/en/latest/docs/reference/command/subcommands/serve.html#session-id-options
If you are using bokeh.server.Server
and need to find your session id: https://docs.bokeh.org/en/latest/docs/reference/server/server.html#bokeh.server.server.BaseServer.get_sessions
In my practice it's often a good idea to use something like apscheduler
for periodic auto-saves by a callback function like dataset.to_pandas().to_csv()
.
Actually this could be a good FAQ.
Good to know. I ended up developing a solution that auto-loaded the last saved export on start up. Thanks for the references.
I accidentally hit back while labeling and the Bokeh ioloop was unable to retrieve the prior session,
so I lost about an hour of labeling work. Fortunately, I exported the dataset minutes before this happened and I hope I can load it as a SupervisiableDataset and start where I left off.
EDIT - I was able to restore with
SupervisableTextDataset.from_pandas
and making sure that df[SUBSET
] was not set toraw
.