Databricks notebook

  • Post author:
  • Post category:Databricks

Overview of Databricks notebook

Databricks notebook is a web based interface similar to Jupyter notebooks to provide users ability to develop, execute and visualize the code and its results.

Users can create, rename, update & delete the notebooks.

Create Databricks notebook

  1. In the Databricks workspace, click on “New Notebook” as shown below
Databricks Notebook
  1. Input the notebook name and select the language of your choice. Notebook will support Python, Scala, SQL & R
Databricks Create notebook
  1. Notebook will open as shown below, Enter a python command and click on “Run Cell” command as shown below
Databricks Notebook UI

Delete a Notebook

From the workspace Home, select the notebook to be deleted and perform “Move to Trash” as shown below

Databricks Delete Notebook

More information found in https://docs.databricks.com/notebooks/notebooks-manage.html

Databricks Notebooks Features

Databricks Notebooks provides the following additional features too

Visualizations

In the notebooks, Databricks supports various types of visualizations out of the box using the display and displayHTML functions.

More information found in https://docs.databricks.com/notebooks/visualizations/index.html

Dashboards

Dashboards allow you to publish graphs and visualizations derived from notebook output and share them in a presentation format with your organization.

More information found in https://docs.databricks.com/notebooks/dashboards.html

Widgets

Input widgets allow you to add parameters to your notebooks and dashboards. The widget API consists of calls to create various types of input widgets, remove them, and get bound values.

More information found in https://docs.databricks.com/notebooks/widgets.html