Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Extending Power BI with Python and R
Extending Power BI with Python and R

Extending Power BI with Python and R: Ingest, transform, enrich, and visualize data using the power of analytical languages

eBook
€22.99 €32.99
Paperback
€41.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with a Packt Subscription?

Free for first 7 days. €18.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing
Table of content icon View table of contents Preview book icon Preview Book

Extending Power BI with Python and R

Chapter 1: Where and How to Use R and Python Scripts in Power BI

Power BI is Microsoft's flagship self-service business intelligence product. It consists of a set of on-premises applications and cloud-based services that help organizations integrate, transform, and analyze data from a wide variety of source systems through a user-friendly interface.

The platform is not limited to data visualization. Power BI is much more than this, when you consider that its analytics engine (Vertipaq) is the same as SQL Server Analysis Services (SSAS) and Azure Analysis Services. It also uses Power Query as its data extraction and transformation engine, which we find in both Analysis Services and Excel. The engine comes with a very powerful and versatile formula language (M) and GUI, thanks to which you can "grind" and shape any type of data into any form.

Moreover, Power BI supports DAX as a data analytic formula language, which can be used for advanced calculations and queries on data that has already been loaded into tabular data models.

Such a versatile and powerful tool is a godsend for anyone who needs to do data ingestion and transformation in order to build dashboards and reports to summarize a company's business.

Recently, the availability of huge amounts of data, along with the ability to scale the computational power of machines, has made the area of advanced analytics more appealing. So, new mathematical and statistical tools have become necessary in order to provide rich insights. Hence the integration of analytical languages such as Python and R within Power BI.

R or Python scripts can only be used within Power BI with specific features. Knowing which Power BI tools can be used to inject R or Python scripts into Power BI is key to understanding whether the problem you want to address is achievable with these analytical languages.

This chapter will cover the following topics:

  • Injecting R or Python scripts into Power BI
  • Using R and Python to interact with your data
  • R and Python limitations on Power BI products

Technical requirements

This chapter requires you to have Power BI Desktop already installed on your machine (you can download it from here: https://aka.ms/pbiSingleInstaller).

Injecting R or Python scripts into Power BI

In this first section, Power BI Desktop tools that allow you to use Python or R scripts will be presented and described in detail. Specifically, you will see how to add your own code during the data loading, data transforming, and data viewing phases.

Data loading

One of the first steps required to work with data in Power BI Desktop is to import it from external sources:

  1. There are many connectors that allow you to do this, depending on the respective data sources, but you can also do it via scripts in Python and R. In fact, if you click on the Get data icon in the ribbon, not only the most commonly used connectors are shown, but you can select other ones from a more complete list by clicking on More...:
    Figure 1.1 – Browse more connectors to load your data

    Figure 1.1 – Browse more connectors to load your data

  2. In the new Get Data window that pops up, simply start typing the string script into the search text box, and immediately the two options for importing data via Python or R appear:
    Figure 1.2 – Showing R script and Python script into the Get Data window

    Figure 1.2 – Showing R script and Python script into the Get Data window

  3. Reading the contents of the tooltip, obtained by hovering the mouse over the Python script option, two things should immediately jump out at you:

    a) A local installation of Python is required.

    b) What can be imported through Python is a data frame.

    The same two observations also apply when selecting R script. The only difference is that it is possible to import a pandas DataFrame when using Python (a DataFrame is a data structure provided by the pandas package), whereas R employs the two-dimensional array-like data structure called an R data frame, which is provided by default by the language.

  4. After clicking on the Python script option, a new window will be shown containing a text box for writing the Python code:
    Figure 1.3 – Window showing the Python script editor

    Figure 1.3 – Window showing the Python script editor

    As you can see, it's definitely a very skimpy editor, but in Chapter 3, Configuring Python with Power BI, you'll see how you can use your favorite IDE to develop your own scripts.

  5. Taking a look at the warning message, Power BI reminds you that no Python engine has been detected, so it must be installed. Clicking on the How to install Python link will cause a Microsoft Docs web page to open, explaining the steps to install Python.

    Microsoft suggests installing the base Python distribution, but in order to follow some best practices on environments, we will install the Miniconda distribution. The details of how to do this and why will be covered in Chapter 3.

  6. If you had clicked on R script instead, a window for entering code in R, similar to the one shown in Figure 1.4, would have appeared:
Figure 1.4 – Window showing the R script editor

Figure 1.4 – Window showing the R script editor

As with Python, in order to run code in R, you need to install the R engine on your machine. Clicking on the How to install R link will open a Docs page where Microsoft suggests installing either Microsoft R Open or the classic CRAN R. Chapter 2, Configuring R With Power BI, will show you which engine to choose and how to configure your favorite IDE to write code in R.

In order to import data using Python or R, you need to write code in the editors shown in Figure 1.3 and Figure 1.4 that assigns a pandas DataFrame or an R dataframe to a variable, respectively. You will see concrete examples throughout this book.

Next, let's look at transforming data.

Data transformation

It is possible to apply a transformation to data already imported or being imported, using scripts in R or Python. Should you want to test this on the fly, you can import the following CSV file directly from the web: http://bit.ly/iriscsv. Follow these steps:

  1. Simply click on Get data and then Web to import data directly from a web page:
    Figure 1.5 – Select the Web connector to import data from a web page

    Figure 1.5 – Select the Web connector to import data from a web page

  2. You can now enter the previously mentioned URL in the window that pops up:
    Figure 1.6 – Import the Iris data from the web

    Figure 1.6 – Import the Iris data from the web

    Right after clicking OK, a window will pop up with a preview of the data to be imported.

  3. In this case, instead of importing the data as-is, click on Transform Data in order to access the Power Query data transformation window:
    Figure 1.7 – Imported data preview

    Figure 1.7 – Imported data preview

  4. It is at this point that you can add a transformation step using a Python or R script by selecting the Transform tab in Power Query Editor:
    Figure 1.8 – R and Python script tools into Power Query Editor

    Figure 1.8 – R and Python script tools into Power Query Editor

  5. By clicking on Run Python script, you'll cause a window similar to the one you've already seen in the data import phase to pop up:
    Figure 1.9 – The Run Python script editor

    Figure 1.9 – The Run Python script editor

    If you carefully read the comment in the text box, you will see that the dataset variable is already initialized and contains the data present at that moment in Power Query Editor, including any transformations already applied. At this point, you can insert your Python code in the text box to transform the data into the desired form.

  6. A similar window will open if you click on Run R script:
Figure 1.10 – The Run R script editor

Figure 1.10 – The Run R script editor

Also, in this case, the dataset variable is already initialized and contains the data present at that moment in Power Query Editor. You can then add your own R code and reference the dataset variable to transform your data in the most appropriate way.

Next, let's look at visualizing data.

Data visualization

Finally, your own Python or R scripts can be added to Power BI to create new visualizations, in addition to those already present in the tool out of the box:

  1. Assuming we resume the data import activity begun in the previous section, once the Iris dataset is loaded, simply click Cancel in the Run R script window, and then click Close & Apply in the Home tab of Power Query Editor:
    Figure 1.11 – Click Close & Apply to import the Iris data

    Figure 1.11 – Click Close & Apply to import the Iris data

  2. After the data import is complete, you can select either the R script visual or Python script visual option in the Visualizations pane of Power BI:
    Figure 1.12 – The R and Python script visuals

    Figure 1.12 – The R and Python script visuals

  3. If you click on Python script visual, a window pops up asking for permission to enable script code execution, as there may be security or privacy risks:
    Figure 1.13 – Enable the script code execution

    Figure 1.13 – Enable the script code execution

  4. After enabling code execution, in Power BI Desktop you can see a placeholder for the Python visual image on the report canvas and a Python script editor at the bottom:
Figure 1.14 – The Python visual layout

Figure 1.14 – The Python visual layout

You can now write your own custom code in the Python editor and run it via the Run script icon highlighted in Figure 1.14 to generate a Python visualization.

A pretty much identical layout occurs when you select R script visual.

Using R and Python to interact with your data

In the previous section, you saw all the ways you can interact with your data in Power BI via R or Python scripts. Beyond knowing how and where to inject your code into Power BI, it is very important to know how your code will interact with that data. It's here that we see a big difference between the effect of scripts injected via Power Query Editor and scripts used in visuals:

  • Scripts via Power Query Editor: This type of script will transform the data and persist transformations in the model. This means that it will always be possible to retrieve the transformed data from any object within Power BI. Also, once the scripts have been executed and have taken effect, they will not be re-executed unless the data is refreshed. Therefore, it is recommended to inject code in R or Python via Power Query Editor when you intend to use the resulting insights in other visuals, or in the data model.
  • Scripts in visuals: The scripts used within the R and Python script visuals extract particular insights from the data and only make them evident to the user through visualization. Like all the other visuals on a report page, the R and Python script visuals are also interconnected with the other visuals. This means that the script visuals are subject to cross-filtering and therefore they are refreshed every time you interact with other visuals in the report. That said, it is not possible to persist the results obtained from the visuals scripts in the data model.

    Tip

    Thanks to the interactive nature of R and Python script visuals due to cross-filtering, it is possible to inject code useful to extract real-time insights from data, but also from external sources (you'll see how in Chapter 9, Calling External APIs to Enrich Your Data). The important thing to keep in mind is that, as previously stated, it is then only possible to visualize such information, or at the most to write it to external repositories (as you will see in Chapter 7, Logging Data from Power BI to External Sources).

In the final section of this chapter, let's look at the limitations of using R and Python when it comes to various Power BI products.

R and Python limitations on Power BI products

The first question once you are clear on where to inject R and Python scripts in Power BI could be: "Is the use of R and Python code allowed in all Power BI products?" In order to have a brief recap of the various Power BI products and their usage in general, here is a concise list:

  • Power BI Service: This is sometimes called Power BI Online, and it's the Software as a Service (SaaS) declination of Power BI. It was created to facilitate the sharing of visual analysis between users through Dashboards and Reports.
  • Power BI Report Server: This is the on-premises version of Power BI and it extends the capabilities of SQL Server Reporting Services, enabling the sharing of reports created in Power BI Desktop (for Report Server).
  • Power BI Embedded: A Microsoft Azure service that allows dashboards and reports to be embedded in an application for users who do not have a Power BI account.
  • Power BI Desktop: A free desktop application for Windows that allows you to use almost all of the features that Power BI exposes. It is not the right tool for sharing results between users, but it allows you to share them on Power BI Service and Power BI Report Server. The desktop versions that allow publishing on the two mentioned services are distinct.
  • Power BI Mobile: A mobile application, available on Windows, Android, and iOS, that allows secure access to Power BI Service and Power BI Report Server, and that allows you to browse and share dashboards and reports, but not edit them.

Apart from the licenses, which we will not go into here, a summary figure of the relationships between the previously mentioned products follows:

Figure 1.15 – Interactions between Power BI products

Figure 1.15 – Interactions between Power BI products

Unfortunately, of all these products, only Power BI Service, Power BI Embedded, and Power BI Desktop allow you to enrich data via code in R and Python:

Figure 1.16 – Power BI products compatibility with R and Python

Figure 1.16 – Power BI products compatibility with R and Python

Important note

From here on out, when we talk about Power BI Service in terms of compatibility with analytical languages, what we say will also apply to Power BI Embedded.

So, if you need to develop reports using advanced analytics through R and Python, make sure the target platform supports them.

Summary

This chapter has given a detailed overview of all the ways by which you can use R and Python scripts in Power BI Desktop. During the data ingestion and data transformation phases, Power Query Editor allows you to add steps containing R or Python code. You can also make use of these analytical languages during the data visualization phase thanks to the R and Python script visuals provided by Power BI Desktop.

It is also very important to know how the R and Python code will interact with the data already loaded or being loaded in Power BI. If you use Power Query Editor, both when loading and transforming data, the result of script processing will be persisted in the data model. Also, if you want to run the same scripts again, you have to refresh the data. On the other hand, if you use the R and Python script visuals, the code results can only be displayed and are not persisted in the data model. In this case, script execution occurs whenever cross-filtering is triggered via the other visuals in the report.

Unfortunately, at the time of writing, you cannot run R and Python scripts in any Power BI product. The only ones that provide for running analytics scripts are Power BI Desktop and the Power BI service.

In the next chapter, we will see how best to configure the R engine and RStudio to integrate with Power BI Desktop.

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Get the most out of Python and R with Power BI by implementing non-trivial code
  • Leverage the toolset of Python and R chunks to inject scripts into your Power BI dashboards
  • Implement new techniques for ingesting, enriching, and visualizing data with Python and R in Power BI

Description

Python and R allow you to extend Power BI capabilities to simplify ingestion and transformation activities, enhance dashboards, and highlight insights. With this book, you'll be able to make your artifacts far more interesting and rich in insights using analytical languages. You'll start by learning how to configure your Power BI environment to use your Python and R scripts. The book then explores data ingestion and data transformation extensions, and advances to focus on data augmentation and data visualization. You'll understand how to import data from external sources and transform them using complex algorithms. The book helps you implement personal data de-identification methods such as pseudonymization, anonymization, and masking in Power BI. You'll be able to call external APIs to enrich your data much more quickly using Python programming and R programming. Later, you'll learn advanced Python and R techniques to perform in-depth analysis and extract valuable information using statistics and machine learning. You'll also understand the main statistical features of datasets by plotting multiple visual graphs in the process of creating a machine learning model. By the end of this book, you’ll be able to enrich your Power BI data models and visualizations using complex algorithms in Python and R.

Who is this book for?

This book is for business analysts, business intelligence professionals, and data scientists who already use Microsoft Power BI and want to add more value to their analysis using Python and R. Working knowledge of Power BI is required to make the most of this book. Basic knowledge of Python and R will also be helpful.

What you will learn

  • Discover best practices for using Python and R in Power BI products
  • Use Python and R to perform complex data manipulations in Power BI
  • Apply data anonymization and data pseudonymization in Power BI
  • Log data and load large datasets in Power BI using Python and R
  • Enrich your Power BI dashboards using external APIs and machine learning models
  • Extract insights from your data using linear optimization and other algorithms
  • Handle outliers and missing values for multivariate and time-series data
  • Create any visualization, as complex as you want, using R scripts

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Nov 26, 2021
Length: 558 pages
Edition : 1st
Language : English
ISBN-13 : 9781801078207
Vendor :
Microsoft
Category :
Languages :
Tools :

What do you get with a Packt Subscription?

Free for first 7 days. €18.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing

Product Details

Publication date : Nov 26, 2021
Length: 558 pages
Edition : 1st
Language : English
ISBN-13 : 9781801078207
Vendor :
Microsoft
Category :
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 147.97
Microsoft Power BI Cookbook
€52.99
Extending Power BI with Python and R
€41.99
Expert Data Modeling with Power BI
€52.99
Total 147.97 Stars icon

Table of Contents

21 Chapters
Section 1: Best Practices for Using R and Python in Power BI Chevron down icon Chevron up icon
Chapter 1: Where and How to Use R and Python Scripts in Power BI Chevron down icon Chevron up icon
Chapter 2: Configuring R with Power BI Chevron down icon Chevron up icon
Chapter 3: Configuring Python with Power BI Chevron down icon Chevron up icon
Section 2: Data Ingestion and Transformation with R and Python in Power BI Chevron down icon Chevron up icon
Chapter 4: Importing Unhandled Data Objects Chevron down icon Chevron up icon
Chapter 5: Using Regular Expressions in Power BI Chevron down icon Chevron up icon
Chapter 6: Anonymizing and Pseudonymizing Your Data in Power BI Chevron down icon Chevron up icon
Chapter 7: Logging Data from Power BI to External Sources Chevron down icon Chevron up icon
Chapter 8: Loading Large Datasets beyond the Available RAM in Power BI Chevron down icon Chevron up icon
Section 3: Data Enrichment with R and Python in Power BI Chevron down icon Chevron up icon
Chapter 9: Calling External APIs to Enrich Your Data Chevron down icon Chevron up icon
Chapter 10: Calculating Columns Using Complex Algorithms Chevron down icon Chevron up icon
Chapter 11: Adding Statistics Insights: Associations Chevron down icon Chevron up icon
Chapter 12: Adding Statistics Insights: Outliers and Missing Values Chevron down icon Chevron up icon
Chapter 13: Using Machine Learning without Premium or Embedded Capacity Chevron down icon Chevron up icon
Section 3: Data Visualization with R in Power BI Chevron down icon Chevron up icon
Chapter 14: Exploratory Data Analysis Chevron down icon Chevron up icon
Chapter 15: Advanced Visualizations Chevron down icon Chevron up icon
Chapter 16: Interactive R Custom Visuals Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.7
(10 Ratings)
5 star 70%
4 star 30%
3 star 0%
2 star 0%
1 star 0%
Filter icon Filter
Top Reviews

Filter reviews by




Dr. Franco Arda Oct 21, 2022
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I'm a Tableau developer and have no clue about Power BI. However, I code in R/Python, so I was curious to see if "we" could steal some ideas :-)I was particularly interested in the anonymizing data.It's a very good, and I love the author's eye for detail. The material feels novel to me and is not just another R/Python script doing classification problems.I found the optimization problems quite challenging (see screenshot).Kudos
Amazon Verified review Amazon
Jaouad Safouani Dec 31, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I went through the book last week. some of the material used is aimilar to Udacity Nano degree. Book explains how to use Python and R with Power BI. Loved the fact that the author explains the theory and the code used.
Amazon Verified review Amazon
Paul Turley Dec 31, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
After reading the other reviews for this book, there is little I can add about the outstanding quality and value of this comprehensive technical reference. This is a complex and difficult topic to cover, but Luca and Francesca do an amazing job; with simple, complete and well-organized instructions. I learned not only why there are multiple choices and versions of each language, but when to consider using different implementations of R or Python for data transformation, analysis and advanced visualization. Beginners will have a clear understanding about how R and Python fit into the Power BI ecosystem and experienced analysts will have a useful set of tools to take their solutions to the next level, with several examples and patterns to follow.
Amazon Verified review Amazon
Nikola Ilic Nov 27, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Luca is a well-known and proven expert in the community, he’s also a Microsoft MVP and someone who always had interesting things to share. Since I don’t know (almost) anything about Python and R, I’ve decided to read this book and learn how these two very popular and powerful languages integrate with my favorite tool – Power BI!Luca breaks down this wide topic into 16 chapters, spanning across ~520 pages! Some of the chapters that I liked most are:*Loading Large Datasets beyond the Available RAM in Power BI – didn’t have idea that this is possible:)*Anonymizing and Pseudonymizing Your Data in Power BI*Adding Statistics Insights: Associations*Exploratory Data AnalysisAdvanced Visualizations – circular barplot, for example!Have you heard about Dask?! Neither did I! But, I’ve learned from Luca’s book that you can use this Python library to increase the parallelism of your machine and manipulate 100+ GB datasets with one single laptop!At the end of each chapter, there is a short summary of the concepts and skills you’ve learned, which helps you to stay on track. Luca writes clearly and there are a lot of practical examples of how to apply gained knowledge.Personally, the book overcame my expectations – I’ve learned a lot about some new features and how Power BI can be extended beyond default functionalities using popular languages such as Python and R. I wholeheartedly recommend it to anyone interested in deepening knowledge about using Python and R to enhance your Power BI solutions.In my opinion, the book is not for the Power BI “newbies”, more for intermediate and advanced users.
Amazon Verified review Amazon
Brian Julius, Power BI Expert and Instructor Dec 04, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Power BI is an incredible analytical and visualization tool, but if your reports require anything beyond basic statistical or geospatial analyses, use very large datasets or incorporate machine learning models, then integrating R or Python into Power BI is a must. This book provides a clear, well-written and beautifully organized roadmap for successfully integrating R or Python into Power BI in a very wide variety of scenarios, many of which I've not seen addressed elsewhere. The author does a nice job clearly calling out best practices and cautionary notes.For those deciding between Python and R, each topic addressed includes both Python and R sections making it easy to compare approaches and specific code between the two. Many of the topics in the book are quite advanced, but they are very well-explained step-by-step with downloadable code, sample datasets, and extensive screenshot and illustrations. Highly recommended.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is included in a Packt subscription? Chevron down icon Chevron up icon

A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content

How can I cancel my subscription? Chevron down icon Chevron up icon

To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.

What are credits? Chevron down icon Chevron up icon

Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.

What happens if an Early Access Course is cancelled? Chevron down icon Chevron up icon

Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.

Where can I send feedback about an Early Access title? Chevron down icon Chevron up icon

If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team. 

Can I download the code files for Early Access titles? Chevron down icon Chevron up icon

We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.

When we publish the book, the code files will also be available to download from the Packt website.

How accurate is the publication date? Chevron down icon Chevron up icon

The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.

How will I know when new chapters are ready? Chevron down icon Chevron up icon

We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.

I am a Packt subscriber, do I get Early Access? Chevron down icon Chevron up icon

Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.

How is Early Access delivered? Chevron down icon Chevron up icon

Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.

How do I buy Early Access content? Chevron down icon Chevron up icon

Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.

What is Early Access? Chevron down icon Chevron up icon

Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.