Friday, July 14, 2023

Magic commands

 

Following are possible magic commands available in Databricks

  1. %python
  2. %sql
  3. %scala
  4. %sh
  5. %fs → Alternatively, one can use dbutils.fs
  6. %md

Note:

  • The first line in the cell must be the magic command
  • One cell allows only one magic command
  • Magic commands are case sensitive
  • When you change the default language, all cells in that notebook automatically add a magic command of the previous default language.

No comments:

Post a Comment