JuliaPy / JuliaPy/PythonCall.jl

Multi-line seval() in JuliaCall?

未关闭
#331 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
question
主要语言
Julia
星标
1.1k
派生
86
平均合并
1 天 22 小时
30 天内合并 PR
3

描述

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?

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。