microsoft / jupyter-Kqlmagic

Extension (Magic) to Jupyter notebook and Jupyter lab, that enable notebook experience working with Kusto, ApplicationInsights, and LogAnalytics data.
Other
85 stars 31 forks source link

MFA doesn't work in VS code's Jupyter extension #64

Closed chenfeibo closed 3 years ago

chenfeibo commented 3 years ago

Hi,

I'm using KqlMaggic version 0.1.113. I can successfully do MFA in Jupyter notebook running in a browser. But when try it in VS code's Jupyter extension, it doesn't work.

The "Copy code to clipboard and authenticate" button appears, after clicking it the code was copied into clipboard but no page was opened for authentication. Not sure if it's an issue of KqlMargic or the Jupyter extension.

Thanks, Feibo

mbnshtck commented 3 years ago

To start troubleshoot it, please send me which vscode version you use and what os, and other info that you think might help to reproduce it

chenfeibo commented 3 years ago

To start troubleshoot it, please send me which vscode version you use and what os, and other info that you think might help to reproduce it

I'm using vs code 1.52.1. Tried it on both WSL 2.0 based on Ubuntu 20.04.1 LTS and a Jupyter Notebook server built by Azure Machine Learning Service, which is based on Ubuntu 16.04.7 LTS.

VS code itself is running on Windows 10.0.19042.

mbnshtck commented 3 years ago

please try to set KQLMAGIC_NOTEBOOK_APP environment variable to visualstudiocode before you load Kqlmagic:

%env KQLMAGIC_NOTEBOOK_APP=visualstudiocode %reload_ext Kqlmagic

and let me know whether it solved the problem

chenfeibo commented 3 years ago

Yes, this works! Thank you so much Michael!

mbnshtck commented 3 years ago

Can you please run %env in your notebook, before you load Kqlmagic, and send me the output (make sure to remove/obfuscate secrets if exist). please send it directly to my email: mbnshtck@gmail.com I would like to see whether visual studio code has any environment variables on these Linux variants that can be used as a signature to auto-detect it in the future Thanks

chenfeibo commented 3 years ago

sent.

mbnshtck commented 3 years ago

Thank you