---
title: "Discussion on \"QuickTest: Switching Between Fabric Python And PySpark Notebooks\" | Hashnode"
description: "Discussion on \"QuickTest: Switching Between Fabric Python And PySpark Notebooks\". Switch between Fabric Python and PySpark easily, saving compute units while keeping exploration flexible through interactive use"
url: "https://hashnode.com/posts/quicktest-switching-between-fabric-python-and-pyspark-notebooks/6765cb455b2bb8335be47d95"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [QuickTest: Switching Between Fabric Python And PySpark Notebooks](https://fabric.guru/quicktest-switching-between-fabric-python-and-pyspark-notebooks?utm_source=hashnode&utm_medium=feed)

Switch between Fabric Python and PySpark easily, saving compute units while keeping exploration flexible through interactive use

Dec 20, 2024 · 4 min read · fabric.guru  
Read the article

-   [#pysaprk](https://hashnode.com/tag/pysaprk)
-   [#microsoftfabric](https://hashnode.com/tag/microsoftfabric)
-   [#notebookeverything](https://hashnode.com/tag/notebookeverything)
-   [#python](https://hashnode.com/tag/python)
-   [#deltalake](https://hashnode.com/tag/deltalake)

## Written by

[Sandeep Pawar](https://hashnode.com/@PawarBI)

@PawarBI

  
[View profile](https://hashnode.com/@PawarBI)

Building Data Analytics and Data Science solutions using Microsoft Fabric | Principal PM, Microsoft Fabric CAT

Principal Program Manager, Microsoft Fabric CAT helping users and organizations build scalable, insightful, secure solutions. Blogs, opinions are my own and do not represent my employer.

## Responses 1

Markdown supported · ⌘↵ to post

[Tamas Vandorffy](https://hashnode.com/@tvandorffy)

[Feb 4, 2025](https://hashnode.com/posts/quicktest-switching-between-fabric-python-and-pyspark-notebooks/6765cb455b2bb8335be47d95/comment/67a23ef4e651c1c0c43756ec)

Awesome piece of code, thanks for sharing! I wonder if it would be possible to hook up the spark-xml library (databricks) in this notebook to be able to read in xml files as well. For my normal pyspark notebook I am already using that based on a guide on microsoft learn. (I am unable to share the link because I am a new user here) Basically, I had to create a new environment for my workspace, upload the spark-xml\_2.12-0.18.0.jar library file to it as a custom library and then configure it in my pyspark notebook with %%configure -f {"conf": {"spark.jars.packages": "com.databricks:spark-xml\_2.12:0.18.0"}}

It was a longshot, but I did try to modify your code by adding the line: .config("spark.jars.packages", "com.databricks:spark-xml\_2.12:0.18.0") to the "builder" section, but of course it did not really have any effect.

Unfortunately, I am not a fabric guru myself, so I definitely need more help. :-)
