Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Magic functions no longer being executed in Interactive Window. #1191

Open
cyaris opened this issue Apr 16, 2024 · 4 comments
Open

[BUG] Magic functions no longer being executed in Interactive Window. #1191

cyaris opened this issue Apr 16, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@cyaris
Copy link

cyaris commented Apr 16, 2024

Describe the bug
Magic functions are no longer being executed in the VS Code Interactive Window.
Running a cell using # MAGIC %md will be treated as a Python comment. The same is true for # MAGIC %run.

To Reproduce
Steps to reproduce the behavior:

  1. Create a Databricks notebook source Python file.
  2. Run a command in the notebook using a MAGIC function.
  3. See that the MAGIC function commands are not run, and instead are rendered as comments.

Screenshots
Screenshot 2024-04-16 at 5 02 19 PM
Screenshot 2024-04-16 at 5 10 44 PM

System information:

  • macOS Version 14.4.1 (23E224)
  • Databricks CLI v0.216.0
  • Python 3.11.0
  • VS Code 1.88.1
  • Jupyter v2024.3.1 (Jupyter Extension)
  • Databricks v1.3.0 (Databricks Extension)
  • Databricks Cluster
    • Databricks Connect Enabled
    • Databricks Runtime 13.3x

Additional context
The issue began a month or so ago.
I tried changing versions for the Jupyter and Databricks extensions but that didn't help.

@cyaris cyaris added the bug Something isn't working label Apr 16, 2024
@kartikgupta-db
Copy link
Contributor

Hi @cyaris. Thanks for reporting this issue. It might be that there is some issue actually running our init script that sets up parsing for this magic.

  • Can you try running command "Databricks: Verify Databricks notebook init scripts".
  • Are you also using synapse extension by any chance? It is known to conflict with our notebooks init script.

@cyaris
Copy link
Author

cyaris commented Apr 17, 2024

Hi @kartikgupta-db, I am not using synapse. How should the command be run?

If I run it as a string I see this...
Screenshot 2024-04-17 at 1 51 25 PM

If I run it not as a string I see this...
Screenshot 2024-04-17 at 1 51 28 PM

Thanks!

@kartikgupta-db
Copy link
Contributor

I meant, running a vscode command.
On mac

  • cmd + shift + p > "Databricks: Verify Databricks notebook init scripts" > enter

@cyaris
Copy link
Author

cyaris commented Apr 18, 2024

I meant, running a vscode command. On mac

  • cmd + shift + p > "Databricks: Verify Databricks notebook init scripts" > enter

Verified...
Screenshot 2024-04-17 at 7 32 45 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants