Skip to content

Latest commit

 

History

History
69 lines (34 loc) · 1002 Bytes

databricks-magic-commands.md

File metadata and controls

69 lines (34 loc) · 1002 Bytes
  • runs a Python file or a notebook

    %run

  • executes shell commands on the cluster nodes

    %sh

  • allows you to interact with the Databricks file system.

    %fs

  • allows you to run SQL queries.

    %sql

  • switches the notebook context to Scala.

    %scala

  • switches the notebook context to Python.

    %python

  • allows you to write markdown text.

    %md

  • switches the notebook context to R.

    %r

  • lists all the available magic commands.

    %lsmagic

  • lists all the running jobs.

    %jobs

  • allows you to set configuration options for the notebook.

    %config

  • reloads the contents of a module.

    %reload

  • allows you to install Python packages.

    %pip

  • loads the contents of a file into a cell.

    %load

  • sets up the matplotlib backend.

    %matplotlib

  • lists all the variables in the current scope.

    %who

  • allows you to set environment variables.

    %env