Get current notebook path in JupyterLab

I know it is a late answer, but… I would use INotebookTracker. Well, I am using INotebookTracker in the LSP extension for that exact purpose.

2 Likes