You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In our documentation, we have some instances of Python code that uses jpy to call Java from Python. We've begun to add some functionalities to the deephaven module that allow a user to call java without using jpy. One area that isn't covered, though, is importing Java packages in Python.
Currently, it's extremely diffieult (if not impossible) to implement the analogue of the following code in Python:
This, however, creates a URLClassLoader, but does not get the System ClassLoader. Attempting to call getSystemClassLoader() returns a java.lang.ClassLoader, which does not have an addURL() method.
If a user wants to use an external Java package in a Python console for some reason, they can't. It would be pretty nice to have a little java method that can be called from Python to make this easy for a Python user.
The text was updated successfully, but these errors were encountered:
@chipkent I am puzzled that this is slated for May delivery. I talked to @jjbrosnan to learn more about it and he suggested that I reach out to you to see if there is a concrete use case that could demo this is something we absolutely need to provide. Your thoughts?
In our documentation, we have some instances of Python code that uses jpy to call Java from Python. We've begun to add some functionalities to the deephaven module that allow a user to call java without using jpy. One area that isn't covered, though, is importing Java packages in Python.
Currently, it's extremely diffieult (if not impossible) to implement the analogue of the following code in Python:
ClassLoader.getSystemClassLoader().addURL(new URL(URL_to_jar))
The closest you can get in Python is:
This, however, creates a URLClassLoader, but does not get the System ClassLoader. Attempting to call
getSystemClassLoader()
returns a java.lang.ClassLoader, which does not have anaddURL()
method.If a user wants to use an external Java package in a Python console for some reason, they can't. It would be pretty nice to have a little java method that can be called from Python to make this easy for a Python user.
The text was updated successfully, but these errors were encountered: