V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
BlackSnow
V2EX  ›  Python

jupyter debug

  •  
  •   BlackSnow · 8 天前 · 699 次点击

    新手请教下,vscode 的 jupyter 插件是不是只能看到全局变量figure

    另外,现在 jupyter 的 debug feature,是不是不支持浏览函数内部的行为debug 如果是的话,大家一般怎么测试这种函数 b=mean_distance(xxx)

    3 条回复    2024-09-11 14:05:28 +08:00
    yb2313
        1
    yb2313  
       8 天前
    jupyter 不是打草稿的吗, 好像从来没有 debug 过, 直接插入个单元格详细看看怎么回事
    512357301
        2
    512357301  
       7 天前 via Android
    我一般直接用 Python 插件,直接新建一个 py 文件,在想分割的地方顶格写#%%
    就自动分割出单元格了,也可以像 jupyter 那样只执行单元格内的代码,也能调试。
    BlackSnow
        3
    BlackSnow  
    OP
       7 天前
    已解决,取消勾选 Debug just my code
    这样能够 steping into lib 内部 再根据文档中 step by step
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   4534 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 10:06 · PVG 18:06 · LAX 03:06 · JFK 06:06
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.