tab complete dictionary keys in ipython

后端 未结 2 1960
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-19 09:24

I was wondering if anybody knows how to enable or implement tab completion for dictionary keys in IPython? It seems like it wouldn\'t be very different from functionality that

2条回答
  •  天涯浪人
    2021-02-19 10:06

    It's not built into IPython 2.x. If you want to add it, have a look at this, where someone hacked a solution:

    https://github.com/ipython/ipython/issues/1533

    Also, there are many short and easy ways to create objects from dictionaries, to gain the usual tab completion. If that would help you, use one of the ways described in this question:

    Convert Python dict to object?

提交回复
热议问题