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] Databricks extension conflicts with Synapse extension #1180

Open
fjakobs opened this issue Apr 9, 2024 · 1 comment
Open

[BUG] Databricks extension conflicts with Synapse extension #1180

fjakobs opened this issue Apr 9, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@fjakobs
Copy link
Collaborator

fjakobs commented Apr 9, 2024

Describe the bug
When both the Databricks and the Synapse extension are installed at the same time then Jupyter notebooks no longer work.

To Reproduce
Steps to reproduce the behavior:

  1. Install Databricks extension
  2. Install Synapse extension (https://marketplace.visualstudio.com/items?itemName=SynapseVSCode.synapse)
  3. Open any Jupyter notebook
  4. Try running a cell
  5. See the error

Screenshots

init-ligher.py and session_management.py in ~/.ipython/profile_default/startup are added by Synapse.

Screenshot 2024-04-09 at 12 01 57

Error:

Screenshot 2024-04-09 at 12 18 25

@fjakobs fjakobs added the bug Something isn't working label Apr 9, 2024
@fjakobs
Copy link
Collaborator Author

fjakobs commented Apr 9, 2024

There are two problems:

  1. init_lighter.py is executed after the Databricks script and sets spark to None
  2. session_management.py imports the msal library, which doesn't exist in regular Databricks virtual environments. No script that follows session_management.py will be executed if msal can't be loaded.

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

1 participant