Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
igorkk
Frequent Visitor

Is there a function to check the workspace name / ID in Fabric notebook?

Hi fabricators, is there a function by which we can see the name of the workspace or the workspace ID in fabric notebook?

1 ACCEPTED SOLUTION
v-nikhilan-msft
Community Support
Community Support

Hi @igorkk 
Thanks for using Fabric Community.
You can use the below codes:

vnikhilanmsft_0-1711942737928.png

Hope this helps. Please let me know if you have any further questions.

View solution in original post

5 REPLIES 5
v-nikhilan-msft
Community Support
Community Support

Hi @igorkk 
Thanks for using Fabric Community.
You can use the below codes:

vnikhilanmsft_0-1711942737928.png

Hope this helps. Please let me know if you have any further questions.

Hi,

 

I tried this and it works as expected for the Id, but when I call: 

spark.conf.get("trident.workspace.name")
I get the error: 
Py4JJavaError: An error occurred while calling o308.get. : java.util.NoSuchElementException: trident.workspace.name at org.apache.spark.sql.errors.QueryExecutionErrors$.noSuchElementExceptionError(QueryExecutionErrors.scala:2138)
 
@v-nikhilan-msft Can you help? Thanks 🙂

Hi @igorkk 
We haven’t heard from you on the last response and was just checking back to see if your query got resolved. Otherwise, will respond back with the more details and we will try to help.
Thanks

Hi @igorkk 
We haven’t heard from you on the last response and was just checking back to see if your query got resolved. Otherwise, will respond back with the more details and we will try to help.
Thanks

Hi @igorkk 
Glad that your query got resolved. Please continue using Fabric Community for any help regarding your queries.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Expanding the Synapse Forums

New forum boards available in Synapse

Ask questions in Data Engineering, Data Science, Data Warehouse and General Discussion.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayFBCUpdateCarousel

Fabric Monthly Update - May 2024

Check out the May 2024 Fabric update to learn about new features.