JuliaPy / JuliaPy/PythonCall.jl

Multi-line seval() in JuliaCall?

Open
#331 3 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
Julia
Stars
1.1k
Forks
86
Avg merge
1d 22h
Merged PRs (30d)
3

Description

Hi, I want to run Julia script from Python code.
The only way I know how to achieve this is by:

```
with open("my_cuda_script.jl") as f:
jl_code_lines = f.readlines()

for line in jl_code_lines:
out = jl.seval(line)
print(out)
```
Clearly, this is not an ideal setup and likely adds unnecessary overhead.

How can I run the whole script, or more generally Julia code string with many lines, all at once?

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.