1

I have created some notebook on Databricks and I wanted to access them. One notebook has the local path

/Users/test@gmx.de/sel2

If I now try to access the directory via

%fs /Users/test@gmx.de

I am getting an error message saying that the local directory is not found.

What do I make wrong?

Many thanks!

Andi Maier
  • 914
  • 3
  • 9
  • 28
  • Notebooks, to my knowledge can't be accessed through `%fs`, when you try something with `%fs `, it means you have some data or resource mounted at `` location which is different from workspace where you keep your notebooks. – Anand Vidvat Apr 13 '21 at 17:06

1 Answers1

2

The notebooks aren't a real objects located on the file system. Notebook is in-memory representation and are stored in the database in Databricks-managed control plane. Here is the architecture diagram from documentation:

enter image description here

If you want to export notebook to local file system you can do it via databricks cli or via UI. Or you can include it into another notebook via %run, or execute it from another notebook with notebook workflow (dbutils.notebook.run). And you can run tests inside it with some tools like Nutter.

Alex Ott
  • 80,552
  • 8
  • 87
  • 132