create new notebook if none is opened
Closed this issue · 1 comments
sbrunato commented
If no notebook is opened when clicking on APPLY
from the labextension, create a new one to insert the generated eodag search code snippet in it.
sbrunato commented
Have a look to https://github.com/jupyterlab/jupyterlab/blob/v3.4.8/packages/docmanager/src/manager.ts#L321 and https://github.com/jupyterlab/jupyterlab/blob/v3.4.8/packages/filebrowser/test/openfiledialog.spec.ts#L42
contents.newUntitled({ type: 'notebook' })