当前位置: 首页>>代码示例>>Python>>正文


Python interactiveshell.InteractiveShell方法代码示例

本文整理汇总了Python中IPython.core.interactiveshell.InteractiveShell方法的典型用法代码示例。如果您正苦于以下问题:Python interactiveshell.InteractiveShell方法的具体用法?Python interactiveshell.InteractiveShell怎么用?Python interactiveshell.InteractiveShell使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IPython.core.interactiveshell的用法示例。


在下文中一共展示了interactiveshell.InteractiveShell方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: ip

# 需要导入模块: from IPython.core import interactiveshell [as 别名]
# 或者: from IPython.core.interactiveshell import InteractiveShell [as 别名]
def ip():
    """
    Get an instance of IPython.InteractiveShell.

    Will raise a skip if IPython is not installed.
    """

    pytest.importorskip('IPython', minversion="6.0.0")
    from IPython.core.interactiveshell import InteractiveShell
    return InteractiveShell() 
开发者ID:Frank-qlu,项目名称:recruit,代码行数:12,代码来源:conftest.py

示例2: _plotly_init_notebook_mode

# 需要导入模块: from IPython.core import interactiveshell [as 别名]
# 或者: from IPython.core.interactiveshell import InteractiveShell [as 别名]
def _plotly_init_notebook_mode(self):
        # Hack into display routine.  Also pretend that the InteractiveShell is
        # initialized as display() is otherwise turned into a no-op.
        with patch.multiple(IPython.core.display,
                            publish_display_data=self._send_display_data), \
             patch.multiple(InteractiveShell,
                            initialized=lambda: True):
            plotly.offline.init_notebook_mode() 
开发者ID:imatlab,项目名称:imatlab,代码行数:10,代码来源:_kernel.py

示例3: __init__

# 需要导入模块: from IPython.core import interactiveshell [as 别名]
# 或者: from IPython.core.interactiveshell import InteractiveShell [as 别名]
def __init__(self, shell: InteractiveShell) -> None:
        if shell is not None:
            self.user_ns = shell.user_ns
        else:
            # happens during initialisation of ipython
            self.user_ns = None
        self.shell = shell
        super(HaseMagics, self).__init__(shell) 
开发者ID:hase-project,项目名称:hase,代码行数:10,代码来源:ipython_extension.py


注:本文中的IPython.core.interactiveshell.InteractiveShell方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。