Skip to content

How to access Python variables from %%Julia in ipython?  #278

Closed
@schlichtanders

Description

@schlichtanders

Hello,
after successfully pip installing juliacall and loading its ipython extension, I cannot find a way to access variables defined on the python side.

Say I have a normal python cell

python_variable = "find me"

I now would like to access this from julia

%%julia
using PythonCall
# pyeval(...) ?
# pybuiltins... ?

I haven't found a way. Can you help and provide some documentation?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions