databricks/databricks-vscode

[BUG] Magic command %run not found error

Closed this issue · 2 comments

Describe the bug
Magic command %run not found error

To Reproduce
Steps to reproduce the behavior:

  1. Create a Notebook (Python or Scala)
  2. Add one cell with Magic %run command
  3. Submit the notebook Run file as Workflow on Databricks

Screenshots

Screenshot 2023-07-20 at 14 44 26

System information:

Version: 1.80.1 (Universal)
Commit: 74f6148eb9ea00507ec113ec51c489d6ffb4b771
Date: 2023-07-12T17:20:23.298Z
Electron: 22.3.14
ElectronBuildId: 21893604
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Darwin arm64 22.5.0
4. Databricks Extension Version
v1.1.0
Databricks Extension Logs
Please attach the databricks extension logs

Additional context
Add any other context about the problem here.

Hi @rajaasokan. I tried this against a cluster running DBR 13.2. It seems to be working for me. Could you also provide your cluster version?

Also, the filepaths passed to %run need to be absolute or relative ("./LINES_schema").

@kartikgupta-db yes, my bad. Its working.
Closing the issue. Thanks!