Skip to content

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

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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