Created
October 23, 2018 21:56
-
-
Save sigma23/2baf0b6dcb30643d323062ee113a8a7d to your computer and use it in GitHub Desktop.
Get jupyter notebook name
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from IPython.core.display import Javascript | |
from IPython.display import display | |
import datetime | |
display(Javascript('Jupyter.notebook.kernel.execute(\ | |
"this_notebook = " + "\'"\ | |
+Jupyter.notebook.notebook_name+"\'");')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment