Get current jupyter-lab notebook name [for Jupyter-lab version 2.1 and 3.0.1 and notebook version >6.0.3)
问题 Problem Hi all, As my title suggested it, I would like to get access to the notebook name (in jupyter-lab ) as a variable. So I could reuse it in the notebook itself (for example to name some figure files generated in the notebook). I saw that a similar issue was opened years ago [see here]. However I didnt find a satisfactory answer. I like the simplicity of the answer suggested by @bill: import ipyparams currentNotebook = ipyparams.notebook_name However, it doesn't work for me. I got this