JuliaPy / JuliaPy/PythonCall.jl
Multi-line seval() in JuliaCall?
未关闭
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 还没有评估数据。