Introduction to Databricks notebooks
Notebooks are a common tool in data science and machine learning for developing code and presenting results. In Databricks, notebooks are the primary tool for creating data science and machine learning workflows and collaborating with colleagues. Databricks notebooks provide real-time coauthoring in multiple languages, automatic versioning, and built-in data visualizations.
With Databricks notebooks, you can:
Customize your environment with the libraries of your choice.
Create regularly scheduled jobs to automatically run tasks, including multi-notebook workflows.
Export results and notebooks in
Use a Git-based repository to store your notebooks with associated files and dependencies.
(Experimental) Use advanced editing capabilities.
Notebooks are also useful for exploratory data analysis (EDA)
Import and run an example notebook
The Databricks documentation includes many example notebooks that are intended to illustrate how to use Databricks capabilities. To import one of these notebooks into a Databricks workspace:
Click Copy link for import at the upper right of the notebook preview that appears on the page.
In the workspace browser, navigate to the location where you want to import the notebook.
Click the downward-pointing arrow and select Import from the menu.
Click the URL radio button and paste the link you just copied in the field.
Click Import. The notebook is imported and opens automatically in the workspace. Changes you make to the notebook are saved automatically. For information about editing notebooks in the workspace, see Develop code in Databricks notebooks.
To run the notebook, click at the top of the notebook. For more information about running notebooks and individual notebook cells, see Run Databricks notebooks.
To create a new, blank notebook in your workspace, see Create a notebook.
Start using Databricks notebooks
Manage notebooks: create, rename, delete, get the notebook path, configure editor settings.
Work with cell outputs: download results and visualizations, control display of results in the notebook.
Collaborate using notebooks: share a notebook, use comments in notebooks.