-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Detect Databricks as Jupyter environment #2424
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2424 +/- ##
==========================================
- Coverage 98.71% 98.67% -0.04%
==========================================
Files 73 72 -1
Lines 7771 7767 -4
==========================================
- Hits 7671 7664 -7
- Misses 100 103 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
I don't know if it's any better, but https://stackoverflow.com/questions/51329152/how-to-detect-databricks-environment-programmatically suggests using a different environment variable, Thank you for doing this though! Definitely feels like the right fix to me from a kedro perspective. I thought I'd done |
@AntonyMilneQB I can't find any documentation or guarantee about them, I tend to believe they are more or less the same. But I changed it anyway, let's stick with the StackOverflow answer. |
@willmcgugan Sorry for tagging you directly, do you need more to get this approved? |
Bear with me. Will review PRs within a week or two. |
Thank you! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really don't like this at all, but its no worse than previous code.
@willmcgugan Agree, unfortunately there aren't better way to detect a databricks environment. We have to include something similar because the Rich traceback hook interfere with Databricks notebook. |
Type of changes
Detect Databricks as Jupyter environment, although it is kind of a weird breed of Jupyter Notebook. This should make
JUPYTER_LINES
andJUPYTER_COLUMNS
configurations useful for DatabricksChecklist
Description
Please describe your changes here. If this fixes a bug, please link to the issue, if possible.
Added a condition to check for Databricks environment variable. Fix #2422