---
title: "Comment by Tamas Vandorffy on \"QuickTest: Switching Between Fabric Python And PySpark Notebooks\" | Hashnode"
description: "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"
url: "https://hashnode.com/posts/quicktest-switching-between-fabric-python-and-pyspark-notebooks/6765cb455b2bb8335be47d95/comment/67a23ef4e651c1c0c43756ec"
---

[Discussion](https://hashnode.com/posts/quicktest-switching-between-fabric-python-and-pyspark-notebooks/6765cb455b2bb8335be47d95)

Comment [QuickTest: Switching Between Fabric Python And PySpark Notebooks](https://hashnode.com/posts/quicktest-switching-between-fabric-python-and-pyspark-notebooks/6765cb455b2bb8335be47d95)

[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. :-)
