This adds dispose functionality to the Shell so that it can be closed and it will clear up after itself. This can be called from outside the Shell, such as by the JupyterLite terminal extension. Also added a new exit command so that the Shell can be closed from within.
This is using the @lumino/disposable and @lumino/signaling packages for consistency with the rest of the Jupyter ecosystem; these packages were already implicit dependencies of cockle and now they are explicit.
It is also possible to connect a callback to the Shell.disposed signal so that when used in the terminal extension it will be possible to exit the shell from within it and this will notify the extension so that the UI can be correctly updated.
This adds
dispose
functionality to theShell
so that it can be closed and it will clear up after itself. This can be called from outside theShell
, such as by the JupyterLiteterminal
extension. Also added a newexit
command so that theShell
can be closed from within.This is using the
@lumino/disposable
and@lumino/signaling
packages for consistency with the rest of the Jupyter ecosystem; these packages were already implicit dependencies ofcockle
and now they are explicit.It is also possible to
connect
a callback to theShell.disposed
signal so that when used in theterminal
extension it will be possible toexit
the shell from within it and this will notify the extension so that the UI can be correctly updated.