Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

Open in app Sign up Sign In

Published in CodeX

You have 2 free member-only stories left this month.


Sign up for Medium and get an extra one

Christianlauer Follow

Apr 29 · 2 min read · · Listen

Save

Microsoft launches Power BI Reports in Jupyter


Notebooks
How to quickly create captivating Reports directly in Python
Notebooks

Photo by Mike Kononov on Unsplash

8
Microsoft has introduced an update regarding Power BI in the Jupyter Notebook
Library: Users are now able to create well composed Power BI reports directly in
Notebook.

It is now possible to gain access to insights without having to switch between


various tools or dealing with vast amounts of data, since the reports can now be
directly created within Jupyter Notebook. The new updated Power BI Client for
Jupyter is available on PyPI[2]. The open-sourced Python package, as well as the
complete documentation and demos can be found on GitHub[3].

Instructions on how to create a Report in Jupyter Notebook


The overall process is rather simple: Users have to install powerbiclient using pip,
and then import this to their notebook with the relevant models from the package,
pandas for working with DataFrames, and any other modules they might need for
their data processing.

from powerbiclient import QuickVisualize, get_dataset_config, Report


from powerbiclient.authentication import DeviceCodeLoginAuthentication

import pandas as pd

After that, users create a pandas DataFrame from their data, perform any necessary
processing that might be needed, and authenticate to Power BI using Microsoft’s
given authentication class. With the DataFrame and authentication in place, users
are now able to create a Power BI report instance, which will auto-generate a Power
BI report from their data within seconds.

# Create a Power BI report from your data


PBI_visualize = QuickVisualize(get_dataset_config(df), auth=device_auth)

# Render the new report


PBI_visualize
The created report will feature interactive and visually appealing visualizations,
allowing users to easily display important information of their data in an appealing
manner. Users can then also customize the generated report, if needed.

Once the report is finished, it can be simply kept in the notebook or be manually
saved to share them with teams or organizations in Power BI. This helps to further
create an environment of seamless collaboration and empowers users to fully make
use of Power BI in data analysis and visualization. The report can be also loaded in
the notebook or any other notebooks by using the existing Power BI and Jupyter
library[1].

All in all a rather handy new update that Microsoft has given everyone who has to
create Power BI reports.

Sources and Further Readings


[1] Microsoft Power BI Blog. Create Power BI reports in Jupyter Notebooks. (2023)

[2] pypi.org. powerbiclient 3.0.0. (2023)

[3] GitHub. microsoft/powerbi-jupyter. (2023)

Microsoft Python Power Bi Data Science Technology

Enjoy the read? Reward the writer.Beta


Your tip will go to Christianlauer through a third-party platform of their choice, letting them know you appreciate their
story.

Give a tip

Sign up for CrunchX


By CodeX

A weekly newsletter on what's going on around the tech and programming space Take a look.

Your email

Get this newsletter

By signing up, you will create a Medium account if you don’t already have one. Review our Privacy Policy for more information about our
privacy practices.

About Help Terms Privacy

Get the Medium app

You might also like