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 摘要。