JuliaPy / JuliaPy/pyjulia

How can I reach the local namespace of a Julia function in python scripts?

Open
#427 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
893
Forks
101
PR merge metrics
No merged PRs in 30d

Description

Hi, I'm wondering how to reach a local variable in a Julia function. Say I have the following function in Julia:

cb = function ()
local = 1.0
py"""
# How can I reach the variable 'local' here?
"""

Thanks!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.