ipython / ipython/ipyparallel

Feature request: pull and push with %%px cell magic

未關閉
#225 3 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Jupyter Notebook
星號
2.6k
分支
1k
PR 合併指標
30 天內沒有已合併 PR

描述

I propose allowing one to pull and push in a px cell. The feature allows better encapsulation of cells.

example:
```
%%px push(a, b) pull(c)
c = a + b
```
translates to something like
```
client.push(['a', 'b'], block=False)
%px c = a + b
client.pull('c', block=False)
```

貢獻指南

開啟貢獻指南

研究方向

Start by locating the %%px cell magic implementation and how it currently parses and executes a cell. Compare its behavior with the proposed push(a, b) and pull(c) syntax in the issue example; done means a cell can transfer the named variables before and after remote execution as shown.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
jupyter, python
領域
developer-experience
Issue 類型
功能
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。