title: Databricks: How do I get path of current notebook?
body: <p>Databricks is smart and all, but how do you identify the path of your current notebook? The guide on the <a href="https://docs.azuredatabricks.net/user-guide/faq/get-notebook-path.html" rel="noreferrer">website</a> does not help.</p>
  
  <p>It suggests:</p>
  
  <pre><code>%scala
  dbutils.notebook.getContext.notebookPath
  res1: Option[String] = Some(/Users/user@org.dk/my_test_notebook)
  </code></pre>
  
  <p>This does not give me the complete path, but rather the path to some folder structure that is not accessible from the notebook. I need the path, such that I can make system calls in the same folder as the <strong>.ipynb</strong> file.</p>
  
  <p>Any suggestions?</p>