Please don't give solution for IPython/Jupyter notebooks. The technology is different.
I want to get the path of my Databricks notebook dynamically. Which is something I can get from the UI "Copy File Path" as shown below. I am not able to use __file__
as that is giving me error.
NameError: name '__file__' is not defined