ipython / ipython/ipython

Wishlist: add a `--env` option to `%%script` to set environment variables

オープン
#4,472 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
16.8k
フォーク
4.5k
平均マージ
1日 2時間
マージ済み PR(30日)
6

説明

It would be nice to be able to set environment variables when invoking an external program/script. It can currently be done with command line games, eg: on most linux flavours you could do:

```
%%script env myScriptVar=someValue ruby
...
```

but it would seem more natural for the capability to be in `%%script`, not the least because it could be platform agnostic.

One potential approach would be to allow arbitrary `Popen` args (as a dict perhaps?).

ps: the `env` command also allows unsetting environment variables - another useful option, but perhaps less important..

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。