The Databricks workspace
Explore Catalog Explorer, run a notebook, and use SQL and notebook utilities to find files, inspect tables, and share work.
The left sidebar


| Item | What it holds |
|---|---|
| Workspace | Folders, notebooks, files, Git folders. Personal folder under /Users/<you>; shared area under /Workspace/Shared. |
| Catalog (Catalog Explorer) | Browse catalogs, schemas, tables, views, volumes, functions, models. See schema, sample data, history, lineage, permissions. |
| Jobs & Pipelines | Lakeflow Jobs and Lakeflow Declarative Pipelines, plus ingestion |
| Compute | All-purpose clusters, job compute, SQL warehouses, pools, policies |
| SQL Editor, Queries, Dashboards, Genie, Alerts | Databricks SQL tools for analysts |
| Data ingestion / Marketplace / Partner Connect | Upload files, Lakeflow Connect connectors, partner integrations |
| Experiments, Models, Serving | Machine learning (out of scope) |
Notebooks
A notebook is a list of cells with a default language (Python, SQL, Scala, R). Attach it to compute to run it. Notebooks autosave and keep a revision history. Databricks notebooks are Jupyter-like but are their own format; they import and export .ipynb. They can be exported as source files (.py, .sql), .ipynb, HTML, or .dbc archives.
Working in the notebook UI

%sql, so its language badge switched to SQL. The result grid notes that the output is stored as _sqldf for later Python and SQL cells. Run all, the compute selector, Schedule and Share sit in the top right.- Shift+Enter runs the cell and moves to the next one (creating a new cell at the end). Interrupt stops a running cell.
- The Schedule button in a notebook creates a job that runs that notebook.
- You can also develop locally with the Databricks extension for VS Code (Databricks Connect) and run code on remote compute.
- Result limits:
display()renders the first 10,000 rows; the SQL editor applies a 1,000-row limit by default. Add your ownLIMITwhen exploring big tables.
Magic commands
| Command | Effect |
|---|---|
%python, %sql, %scala, %r | Run this cell in another language |
%md | Markdown documentation cell |
%run ./other_notebook | Runs another notebook inline, in the same session: its functions and variables become available. Used to share setup code. |
%pip install pkg | Notebook-scoped Python library. Put it at the top; it restarts the Python process. |
%sh | Shell command on the driver only |
%fs ls /Volumes/... | Shorthand for dbutils.fs |
Typing a magic command such as %sql on the first line switches the cell's language selector.
Languages share data through tables and temporary views, not variables. A Python variable is not visible in a %sql cell, but a temp view created with df.createOrReplaceTempView("v") is.
%fs, %sh and %run gotchas
%fstakes space-separated arguments, no parentheses and no quotes:%fs mkdirs /Volumes/main/default/my_volume/new_folder. Writing%fs mkdirs("x")fails.- Relative
%fspaths resolve againstdbfs:/, not your notebook folder, and writing to the DBFS root may be blocked. Use full/Volumes/...paths. %shworks on the driver's local filesystem;%sh pwdshows the notebook's folder (for example/Workspace/Users/you). A folder made with%fsdoes not appear there.%runtakes a relative (./child,../lib/setup) or absolute workspace path, no extension, no quotes, and must be the only command in its cell.
dbutils
dbutils.fs.ls("/Volumes/main/raw/landing") # list files
dbutils.fs.cp(src, dst, recurse=True) # copy
dbutils.fs.rm(path, recurse=True) # delete
dbutils.secrets.get(scope="kv", key="api-token") # read a secret
dbutils.widgets.text("run_date", "2026-01-01") # create a parameter widget
dbutils.widgets.get("run_date") # read it
dbutils.notebook.run("./child", 600, {"p": "1"}) # run as a separate job, returns exit value
dbutils.notebook.exit("done") # return a value to the caller
dbutils.jobs.taskValues.set("rows", 1200) # pass values between job tasks
dbutils.library.restartPython() # restart Python after installs
display(df) # rich table and chart output
More dbutils.fs commands:
dbutils.fs.mkdirs("/Volumes/main/raw/landing/2026") # note the plural
dbutils.fs.mv(src, dst) # move or rename
dbutils.fs.head(path, 1024) # first bytes of a file
dbutils.fs.put(path, "text", overwrite=True) # write a small file
dbutils.fs.mount(...) / unmount(...) # legacy, use volumes instead
dbutils.fs.help() # list all commands
%run vs dbutils.notebook.run%run includes the other notebook in the current context, so you get its variables, and it cannot take dynamic parameters easily. dbutils.notebook.run launches the notebook as a separate ephemeral run with its own context, passes parameters as widgets, has a timeout, and returns only the string passed to dbutils.notebook.exit.
Widgets and parameters
Widgets (text, dropdown, combobox, multiselect) parameterize notebooks. When a notebook runs as a job task, task parameters fill the widgets with the same names. In SQL, reference parameters with :param_name (named parameter markers).
Finding data and files with SQL
information_schema
Every Unity Catalog catalog has an information_schema schema with views describing its objects (tables, columns, schemata, table_privileges, tags and more), for example SELECT * FROM main.information_schema.tables WHERE table_schema = 'sales'.
Listing files in SQL
LIST 's3://acme-landing/orders/'; -- needs READ FILES on the external location covering the path
LIST '/Volumes/main/raw/landing/'; -- needs READ VOLUME on the volume
LIST takes a path URL, not the name of an external location. A path without a scheme is resolved against DBFS, which gives errors such as "Public DBFS root is disabled" in Unity Catalog workspaces.
Other workspace features

samples.nyctaxi.trips. The tree on the left reads catalog (samples), schema (nyctaxi), table (trips). The table page has the tabs Overview, Sample Data, Details, Permissions, History, Lineage, Insights and Quality, and the right panel shows the owner, the type (Managed) and the data source (Delta).- Databricks Assistant: AI helper for writing, explaining and fixing code. In the SQL editor and notebooks, generate or edit DDL from a prompt, and use Diagnose error (or
/fix) to explain and fix a failing cell. The video stresses the exam expects you to know the Assistant can debug errors. - Saved queries: naming a SQL editor tab saves it as a query you can reopen or move to a folder.
- Files in the workspace: you can store
.pymodules next to notebooks andimportthem. - Catalog Explorer table page: Overview (columns, comments, tags), Sample data, Details, Permissions, History (Delta versions), Lineage, Insights.
- Add data UI: upload a CSV, JSON or Parquet file to create a table or to a volume. The Add data page can also create a table from files in cloud storage: pick an external location, select files, preview, and create the table.
- Visualizations: from
display()output or SQL results, build charts; add them to an AI/BI dashboard. - Admin settings: workspace admins manage users, groups, feature previews and workspace settings.
Inspect the sample data
Open samples.nyctaxi.trips in Catalog Explorer. Inspect its schema, then run SELECT COUNT(*) FROM samples.nyctaxi.trips in a notebook attached to supported compute.
Check your reasoning
The namespace identifies the catalog samples, the schema nyctaxi, and the table trips. COUNT(*) returns one row with the number of trips.
Product reference
The Databricks workspace quiz
Answer 7 questions. Check each answer for an explanation.