jose_gonzalez
Databricks Employee
Databricks Employee

Hi @Hubert Dudek​ ,

The following command will print the path where your notebook is located. If you split the returned string and only select the last string, then you will be able to get the notebook name

notebook_name = dbutils.notebook.entry_point.getDbutils().notebook().getContext().notebookPath().get()

View solution in original post