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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
Expanding the Synapse Forums

New forum boards available in Synapse

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

April Fabric Update Carousel

Fabric Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors