We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is there any way to define python function from Julia side? or something equivalent to PyCall.@py_strthat can run arbitrary python code from Julia?
PyCall.@py_str
The text was updated successfully, but these errors were encountered:
I had a similar question a little bit ago, and I think the main takeaway was to just do something like this:
julia> using PythonCall julia> @pyexec """ global double def double(s): return s * 2 """ julia> double(s) = @pyeval("double")(s) double (generic function with 1 method) julia> double("hello") Python str: 'hellohello'
Sorry, something went wrong.
Great, thanks!
This is a bit hard to discover, it should be given more prominence in the docs
No branches or pull requests
Is there any way to define python function from Julia side? or something equivalent to
PyCall.@py_str
that can run arbitrary python code from Julia?The text was updated successfully, but these errors were encountered: