我正在使用 pdb 调试 python 代码。我在 pdb 命令行中使用 b [linenumber] 设置断点。我可以检查所有断点的行号吗?谢谢。
我正在使用ipython3
,安装在 Ubuntu 上apt-get
。我无法使用粘贴魔法功能,它抱怨缺少Tkinter
. 但是我确实有Tkinter
并且同样的事情在 ipython (2) 上运行良好。是什么赋予了?
Python 3.2.3 (default, Oct 19 2012, 19:53:16)
Type "copyright", "credits" or "license" for more information.
IPython 0.13.1.rc2 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
In [1]: %paste
ERROR: Getting text from the clipboard on this platform requires Tkinter.
Run Code Online (Sandbox Code Playgroud) 我最喜欢 ipython,但对我努力寻找键盘快捷键的任何文档感到恼火。我可以箭头/滚动浏览我的命令历史记录,我可以ctrl r用来搜索我的历史记录,就像 bash,但其他alt D用于删除单词或ctrl k删除行的bash/readline 命令不起作用。我看到了很多似乎与键盘快捷键和键绑定有关的问题,但没有太多答案。
我现在就满足于取消缩进的帮助——当你开始一个循环或函数定义时,ipython 为你做了一个很好的缩进工作,但似乎我每次backspace backspace backspace backspace在我完成循环后取消缩进时都会遗漏一些东西.
我正在尝试安装,pandoc
所以我做了,conda install pandoc
但没有弹出任何东西,它告诉我要搜索。我搜索了anaconda search -t conda pandoc
,结果如下...如何安装zhenxieit/pandoc
?我正在尝试安装它以从我的iPython
文档制作 .pdf 文件,所以我认为这是最好的。我试过了,conda install zhenxieit/pandoc
但没有用,然后我试过了conda install --name zhenxieit/pandoc
,没有雪茄。
Using binstar api site https://api.anaconda.org
Run 'anaconda show <USER/PACKAGE>' to get more details:
Packages:
Name | Version | Package Types | Platforms
------------------------- | ------ | --------------- | ---------------
???/pandoc | 1.12.3 | conda | linux-64
BjornFJohansson/pandocfilters | 1.2.4 | conda | linux-64, win-32, osx-64, linux-32, win-64
: Utilities for writing pandoc …
Run Code Online (Sandbox Code Playgroud) bpython 中的一项功能称为倒带。
是否有一些类似的键绑定?