Forum Discussion
smpa01
Community Champion
1 year agodetect runtime
Is there any way for a code to return the environment in notebook;
//pseudocode
print(os.environ)
// detects either Fabric or Databricks runtime
thank you in advance
- 1 year ago
The problem requires a code that runs across platforms
sys.modulesand returns unique values related to 'fabric' or 'databricks' or a key that contains 'fabric' or 'databricks' .
I am still open for a better solution but for now I can survive with this.
V-yubandi-msft
Community Support
1 year agoHi smpa01 ,
May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.
Thank You.