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
fromjuliaimportJuliajl=Julia()
jl.eval("1 + 1")
#> [...]/.pyenv/versions/3.9.10/lib/python3.9/site-packages/julia/core.py:703: FutureWarning: Accessing `Julia().<name>` to obtain Julia objects is deprecated. Use `from julia import Main; Main.<name>` or `jl = Julia(); jl.eval('<name>')`.#> warnings.warn(#> 2
I don't understand why there's an error here since I'm in fact using one of the recommended options from the warning above.
Using the first option works fine however:
fromjuliaimportMainMain.eval("1 + 1")
#> 2
The text was updated successfully, but these errors were encountered:
Please consider this code:
I don't understand why there's an error here since I'm in fact using one of the recommended options from the warning above.
Using the first option works fine however:
The text was updated successfully, but these errors were encountered: