Capture magic command
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2026 12:26 PM
%%capture magic command not only suppresses cell output but also assigns it to a variable. You can later print cell output just by using the standard print() function #databricks
Read about 12 magic commands in my blogs:
- https://www.sunnydata.ai/blog/databricks-hidden-magic-commands-notebooks
- https://databrickster.medium.com/hidden-magic-commands-in-databricks-notebooks-655eea3c7527
My blog: https://databrickster.medium.com/
Labels:
- Labels:
-
Hubert Dudek