ipython / ipython/ipython

%edit ObjectDefinedOnAFile works only once

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

説明

Given somefile.py with:
```
class FooBar:
pass
```

On ipython:
```
In [1]: from somefile import *

In [2]: %edit FooBar
Editing... Waiting for Emacs...
done. Executing edited code...

In [3]: %edit FooBar
/home/eduardo/.virtualenvs/smartth/local/lib/python3.5/site-packages/IPython/core/magics/code.py:500: UserWarning: The file where `` was defined cannot be read or found.
'cannot be read or found.' % data)

```

Using:

```
$ python -c "import IPython; print(IPython.sys_info())"
{'commit_hash': 'd86648c5d',
'commit_source': 'installation',
'default_encoding': 'UTF-8',
'ipython_path': '/home/eduardo/.virtualenvs/smartth/lib/python3.5/site-packages/IPython',
'ipython_version': '6.1.0',
'os_name': 'posix',
'platform': 'Linux-4.4.0-92-generic-x86_64-with-Ubuntu-16.04-xenial',
'sys_executable': '/home/eduardo/.virtualenvs/smartth/bin/python',
'sys_platform': 'linux',
'sys_version': '3.5.2 (default, Nov 17 2016, 17:05:23) \n[GCC 5.4.0 20160609]'}
```

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

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

評価

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

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

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