1. XenForo 1.5.14 中文版——支持中文搜索!现已发布!查看详情
  2. Xenforo 爱好者讨论群:215909318 XenForo专区

新闻 IPython 5.4.0 和 6.1.0 发布,Python 命令行交互 下载

本帖由 漂亮的石头2017-06-02 发布。版面名称:软件资讯

  1. 漂亮的石头

    漂亮的石头 版主 管理成员

    注册:
    2012-02-10
    帖子:
    487,984
    赞:
    47
    IPython 5.4.0 和 6.1.0 发布了,有如下更新:

    5.4.0


    • IPython 5.4-LTS 支持在 IPython 6.0 和 6.1 中创建的大部分新的暴露的 API 添加,并避免根据 IPython 的版本编写条件逻辑。更多更新内容点此查看

    6.1.0


    • Quotes in a filename are always escaped during tab-completion on non-Windows. PR #10069


    • Variables now shadow magics in autocompletion. See #4877 and PR #10542.


    • Added the ability to add parameters to alias_magic. For example:

      In [2]: %alias_magic hist history --params "-l 2" --line
      Created `%hist` as an alias for `%history -l 2`.

      In [3]: hist
      %alias_magic hist history --params "-l 30" --line
      %alias_magic hist history --params "-l 2" --line

      Previously it was only possible to have an alias attached to a single function, and you would have to pass in the given parameters every time:

      In [4]: %alias_magic hist history --line
      Created `%hist` as an alias for `%history`.

      In [5]: hist -l 2
      hist
      %alias_magic hist history --line

    • To suppress log state messages, you can now either use %logstart -q, pass--LoggingMagics.quiet=True on the command line, or set c.LoggingMagics.quiet=True in your configuration file.


    • An additional flag --TerminalInteractiveShell.term_title_format is introduced to allow the user to control the format of the terminal title. It is specified as a python format string, and currently the only variable it will format is {cwd}.


    • ??/%pinfo2 will now show object docstrings if the source can’t be retrieved. PR #10532


    • IPython.display has gained a %markdown cell magic. PR #10563


    • %config options can now be tab completed. PR #10555


    • %config with no arguments are now unique and sorted. PR #10548


    • Completion on keyword arguments does not duplicate = sign if already present. PR #10547


    • %run -m <module> now <module> passes extra arguments to <module>. PR #10546


    • completer now understand “snake case auto complete”: if foo_bar_kittens is a valid completion, I can type f_b<tab> will complete to it. PR #10537


    • tracebacks are better standardized and will compress /path/to/home to ~. PR #10515

    下载地址发布主页

    IPython 是 Python 的原生交互式 shell 的增强版,可以完成许多不同寻常的任务,比如帮助实现并行化计算;主要使用它提供的交互性帮助,比如代码着色、改进了的命令行回调、制表符完成、宏功能以及改进了的交互式帮助。

    [​IMG]
    IPython 5.4.0 和 6.1.0 发布,Python 命令行交互下载地址
     
正在加载...