[PYTHON] How to get the notebook name you are currently using in Google Colab

There was an answer on Stackoverflow.

from requests import get
filename = get('http://172.28.0.2:9000/api/sessions').json()[0]['name']

https://stackoverflow.com/questions/61901628/it-is-possible-to-assign-the-google-colab-notebook-name-to-a-python-variable-in

Recommended Posts

How to get the notebook name you are currently using in Google Colab
How to get the variable name itself in python
How to get the files in the [Python] folder
How to display videos inline in Google Colab
How to copy and paste the contents of a sheet in Google Spreadsheet in JSON format (using Google Colab)
Get the file name in a folder using glob
How to run AutoGluon in Google Colab GPU environment
How to get the number of digits in Python
How to generate a query using the IN operator in Django
How to get the last (last) value in a list in Python
How to get all the keys and values in the dictionary
[Shell] How to get the remote default branch in Git
See details of the egg you are currently using in pip + peco + $ {your favorite editor}
How to get only the data you need from a structured data set using a versatile method
How to get the Python version
Get the host name in Python
[For beginners] How to implement O'reilly sample code in Google Colab
How to get and set the NTP server name by DHCP
How to get all the possible values in a regular expression
How to display formulas in latex when using sympy (> = 1.4) in Google Colaboratory
How to get followers and followers from python using the Mastodon API
How to get the vertex coordinates of a feature in ArcPy
Regularly upload files to Google Drive using the Google Drive API in Python
How to get a specific column name and index name in pandas DataFrame
How to use Google Test in C
How to get the date and time difference in seconds with python
How to compare if the contents of the objects in scipy.sparse.csr_matrix are the same
How to get a value from a parameter store in lambda (using python)
How to execute commands in jupyter notebook
How to get a stacktrace in python
How to get colored output to the console
How to automatically check if the code you wrote in Google Colaboratory corresponds to the python coding standard "pep8"
About the development environment you are using
How to get a namespaced view name from a URL (path_info) in Django
[Python] What to do if you get a ModuleNotFoundError when importing pandas using Jupyter Notebook in Anaconda
Get the song name from the title of the video you tried to sing
How to use VS Code (code server) with Google Colab in just 3 lines
Get the hierarchy name using the OpenMaya iterator
How to revive cells in iPython notebook
How to get the "name" of a field whose value is limited by the choice attribute in Django's model
I want to visualize where and how many people are in the factory
python I don't know how to get the printer name that I usually use.
Handle CSV that contains the element you want to parse in the file name
Until you try to let DNN learn the truth of the image using Colab
A memorandum of how to execute the! Sudo magic command in Jupyter Notebook
What to do if you get "Python not configured." Using PyDev in Eclipse
I want to get the file name, line number, and function name in Python 3.4
Instructions for connecting Google Colab. To the local runtime in a Windows environment
How to make the font width of jupyter notebook put in pyenv equal width
How to get a list of files in the same directory with python
How to display Map using Google Map API (Android)
How to use the C library in Python
How to get results from id in Celery
How to get help in an interactive shell
How to use the Google Cloud Translation API
How to get article data using Qiita API
To get the path of the currently running python.exe
What to do to get google spreadsheet in python
Use pygogo to get the log in json.
If you get the error "basis matrix is singular to working precision" in GLPK
How to unit test a function containing the current time using freezegun in python