Skip to main content

Microsoft Kusto access via IPython

Project description

# ipython-kusto - Run Microsoft Kusto queries in IPython notebooks

This extension borrows extensively from Catherine Devlin’s ipython-sql extension.

It provides two magics:

  • %kqlset - a line magic to set the default cluster and database
  • %kql/%%kql - a line or cell magic to execute Kusto Query Language queries and return the results as a Pandas dataframe. The dataframe will be assigned to a variable ‘kqlresult’ (can be overridden with –set argument)

If you run either of these followed by a ‘?’ you will get additional help.

When running a query, you may be redirected to a browser page to sign in if a token is needed.

See the example notebook in the examples/ directory for more details, or view it here with Binder:



Added missing dependencies to


Fix issue with parsing queries containing {}


Fix sample notebook issue. Remove redundant dependencies.


Removed the file; it wasn’t being bundled and caused install to not work. This is a quick fix.


Added a flag to inhibit variable substitution in case that is problematic in some query.


Better error reporting. Use –error to get the old raw error.


Updated URL to point to Github repo.


A typo crept in to 0.0.1 release; that has been fixed. Added a –quiet option to not display the dataframe.

0.01. Initial release

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ipython-kusto, version 0.0.9
Filename, size File type Python version Upload date Hashes
Filename, size ipython-kusto-0.0.9.tar.gz (5.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page