JuliaPy / JuliaPy/PythonCall.jl

Multi-line seval() in JuliaCall?

オープン
#331 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
question
主要言語
Julia
スター
1.1k
フォーク
86
平均マージ
1日 22時間
マージ済み PR(30日)
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 を短くまとめたダイジェスト。