Hi, there are two convenient macro in RCall.jl, @rget and @rput, by which we can transfer variables between Julia and R without worrying about how to build a new variable in R and then copy data in Julia to it.
Could you add something like them in PyCall.jl? I tried to do it, but failed, because it hard to build a new variable in Python with py"...".
py"""...""" could do it, but I have to use it in multiple lines like this:
py"""
codes
"""
For example, there is a variable a=1233456 in Julia, then use "@PyPUT a" to automatically create a variable named "a" in Python and initialize it with 12345. How to realize this macro?
Thanks
Hi, there are two convenient macro in RCall.jl, @rget and @rput, by which we can transfer variables between Julia and R without worrying about how to build a new variable in R and then copy data in Julia to it.
Could you add something like them in PyCall.jl? I tried to do it, but failed, because it hard to build a new variable in Python with py"...".
py"""...""" could do it, but I have to use it in multiple lines like this:
py"""
codes
"""
For example, there is a variable a=1233456 in Julia, then use "@PyPUT a" to automatically create a variable named "a" in Python and initialize it with 12345. How to realize this macro?
Thanks