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


Python Pdb.runcall方法代码示例

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


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

示例1: debug

# 需要导入模块: from IPython.core.debugger import Pdb [as 别名]
# 或者: from IPython.core.debugger.Pdb import runcall [as 别名]
def debug(f, *args, **kwargs):
    """
    Allows the user to launch pdb in any function.

    Parameters
    ----------
    f: function
        The function you wish to debug

    args:
        The arguments that need to be passed to f

    kwargs:
        Named arguments that must be passed to f

    Returns
    -------
    None

    Notes
    -----
    Taken from Wes McKinney's book Python for Data Analysis
    """
    from IPython.core.debugger import Pdb
    pdb = Pdb(color_scheme='Linux')
    return pdb.runcall(f, *args, **kwargs)
开发者ID:spencerlyon2,项目名称:pytools,代码行数:28,代码来源:ipython_debug.py

示例2: debug

# 需要导入模块: from IPython.core.debugger import Pdb [as 别名]
# 或者: from IPython.core.debugger.Pdb import runcall [as 别名]
def debug(f, *args, **kwargs):
    from pdb import Pdb as OldPdb
    try:
        from IPython.core.debugger import Pdb
        kw = dict(color_scheme='Linux')
    except ImportError:
        Pdb = OldPdb
        kw = {}
    pdb = Pdb(**kw)
    return pdb.runcall(f, *args, **kwargs)
开发者ID:takluyver,项目名称:pandas,代码行数:12,代码来源:testing.py

示例3: debug

# 需要导入模块: from IPython.core.debugger import Pdb [as 别名]
# 或者: from IPython.core.debugger.Pdb import runcall [as 别名]
def debug(f, *args, **kwargs):
    pdb = Pdb(color_scheme='Linux')
    return pdb.runcall(f, *args, **kwargs)
开发者ID:vykmnsk,项目名称:autobrowser,代码行数:5,代码来源:dbg.py

示例4: debug

# 需要导入模块: from IPython.core.debugger import Pdb [as 别名]
# 或者: from IPython.core.debugger.Pdb import runcall [as 别名]
def debug( f, *args, ** kwargs): 
    from IPython.core.debugger import Pdb 
    pdb = Pdb( color_scheme='Linux') 
    return pdb.runcall(f, *args, **kwargs)
开发者ID:ajaniv,项目名称:softwarebook,代码行数:6,代码来源:debug.py

示例5: DataFrame

# 需要导入模块: from IPython.core.debugger import Pdb [as 别名]
# 或者: from IPython.core.debugger.Pdb import runcall [as 别名]
etd_plza_df = DataFrame(etd2('PLZA'))
etd_plza_df

# <codecell>

%%html
<iframe src="http://www.bart.gov/schedules/eta?stn=PLZA"/ width=800 height=600>

# <markdowncell>

# How to match the real time estimate with the schedule?
# 
# Let's focus just on the next arrival.
# 
# Might need 
# Possible that a train is late
# 
# In order to compare to schedule for a given station, need to know what route we're considering.

# <codecell>

from IPython.core.debugger import Pdb
pdb = Pdb()
pdb.runcall(bart.get_station_schedule, 'PLZA')

# <codecell>

stations_df.abbr

开发者ID:rdhyee,项目名称:consuming-apis-with-python,代码行数:30,代码来源:BART.py

示例6: Pdb

# 需要导入模块: from IPython.core.debugger import Pdb [as 别名]
# 或者: from IPython.core.debugger.Pdb import runcall [as 别名]
# IPython Step by step debugging of the imported module
from IPython.core.debugger import Pdb
ipdb = Pdb()
ipdb.runcall(my_imported_function, args...)
开发者ID:AK-1121,项目名称:code_extraction,代码行数:6,代码来源:python_19850.py

示例7: debug

# 需要导入模块: from IPython.core.debugger import Pdb [as 别名]
# 或者: from IPython.core.debugger.Pdb import runcall [as 别名]
def debug(f,*args, **kwargs):
    # allows arbitrarily calling debugger for a function. Press "c" to resume
    # the function; press "s" to step through each line of the function
    from IPython.core.debugger import Pdb
    pdb = Pdb(color_scheme='Linux')
    return pdb.runcall(f,*args, **kwargs)
开发者ID:sapphire008,项目名称:Python,代码行数:8,代码来源:Chapter_3_IPython.py


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