Where does jupyterlab get state about previous sessions when it starts up?

1,057 views
Skip to first unread message

Christian Schafmeister

unread,
Aug 24, 2018, 3:04:35 PM8/24/18
to Project Jupyter
Hello,

Does jupyterlab use cookies or some file on my system to figure out what sessions it starts when jupyterlab starts up?

We have developed a jupyter kernel in Common Lisp - we are using bleeding edge jupyterlab 0.34.
If I don't shut down every kernel and close every notebook before shutting down jupyterlab then the next time I start up jupyterlab the notebooks will be open and sessions will be running and everything will be confused. I'm trying to get a handle on where this startup behavior is coming from so I can decide how I want to handle things.

Best,

Christian Schafmeister
Professor, Chemistry Department
Temple University

A. Darian

unread,
Aug 24, 2018, 11:44:25 PM8/24/18
to jup...@googlegroups.com
Hello!

JupyterLab stores the layout state of the application so it can re-open in the same layout that it last used. This behavior is used to support things like refreshing your browser and not losing your state and is also a fairly common behavior among some text editors (e.g. Sublime Text). Workspaces are documented here:


In addition to the `reset` functionality denoted in the documentation, there is also a "Reset Application State" command in the command palette that will clear your workspace if you wish to abandon it.

If you run the command `jupyter lab paths`, you can find the folder where your workspace data resides.

I hope that helps!

-Darian

--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+u...@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/75a4f92e-1ee0-4517-9fff-d52d492a76bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Christian Schafmeister

unread,
Aug 25, 2018, 10:07:12 AM8/25/18
to Project Jupyter
That helps enormously - thank you very much!
I will explore that.
Reply all
Reply to author
Forward
0 new messages