PyPI link: https://pypi.org/project/kqlmagic/, PePy download information:
Kqlmagic magic extension enables notebook experience, exploring Microsoft Azure Monitor data: Azure Data Explorer (Kusto), ApplicationInsights, and LogAnalytics data, from Jupyter notebook (Python3 kernel), using kql (Kusto Query language).
To install via the Python Package Index (PyPI), type:
pip install Kqlmagic
To get the source code of the SDK via git just type:
git clone git://github.com/Microsoft/jupyter-Kqlmagic.git
cd ./jupyter-Kqlmagic
python setup.py install
Download a zip of the code via GitHub or PyPI. Then follow the same instructions as in option 2.
You can control which Kqlmagic dependencies will be installed, by settimg installing KqlmagicCustom instead of Kqlmagic with extras_require. Features that require a missing dependency will be disabled. Following is the List of the Extras:
'default',
'jupyter-all',
'ipython-all',
'python-all',
'plotly',
'pandas',
'widgets',
'extended',
'jupyter-extended',
'ipython-extended',
'python-extended',
'sso',
'azcli_sso',
'msi_sso',
'vscode_sso',
'msal_sso',
'kqlmagic_sso',
'kqlmagic_msal_sso',
'kqlmagic_fernet_sso',
'utils',
'base_utils',
'text_utils',
'json_color',
'auth_code_clipboard',
'matplotlib_palettes',
'basic',
'jupyter-basic',
'ipython-basic',
'python-basic',
'naked',
Some packages are mandatory, and Kqlmagic won't start without them. Most packages are optional, and Kqlmagic will disable the functionality that is based on the missing dependencies.
for example: will install extended packages + pandas:
pip install KqlmagicCustom[extended, pandas]
will install extended basic packages that work with Jupyter, azcli single sign on and plotly:
pip install KqlmagicCustom[jupyter-basic,azcli_sso,plotly]
This library follows Semantic Versioning.
You can find the changes for each version under Releases.
To load the Kqlmagic extension, run in notebook cell:
In [ ]: %reload_ext Kqlmagic
We gladly accept community contributions.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
For general suggestions about Microsoft Azure please use our UserVoice forum.