-
Notifications
You must be signed in to change notification settings - Fork 80
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
Simplify ScriptSession dependencies #4190
Conversation
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.
Definitely in favor of these types of changes.
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.
LGTM
|
||
def init_py(): | ||
"""Finishes starting Python to be usable from inside of a Java process. Not intended to be called in cases | ||
where there process was start as Python, and Java was started from inside Python. |
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.
where there process was start as Python, and Java was started from inside Python. | |
where there process was started as Python, and Java was started from inside Python. |
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.
also fixed there->the
# If you want jpy to tell you about all that it is doing, change this | ||
# jpy.diag.flags = jpy.diag.F_ALL |
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.
Should this be an ENV controlled option to help us debug users?
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.
That seems like a decent idea, but in a different PR (i'm just moving the contents of this file so we have one fewer way to screw up startup).
f123266
dc80e08
to
f123266
Compare
Labels indicate documentation is required. Issues for documentation have been opened: How-to: https://github.com/deephaven/deephaven.io/issues/3211 |
This removes the only python init script, and removes an unused groovy init script. The config variables are left in place for now, though they will default to blank.
One slightly unexpected change that this results in is that the
jpy
,sys
, andos
modules are no longer imported by default into a python script session - this probably should be considered a feature, but does need to be documented.In a future patch I'll propose unifying how init scripts are run, so that there is no potential loss in functionality. If reviewers would prefer, I can just go ahead and add those changes here too, though my aim was to let this be a smaller step by itself.