python & DS
python 실행시간 측정 및 디버깅
Sumin Lim
2024. 1. 9. 14:31
반응형
If you want to time how long it takes for a whole cell to run, you’d use %%timeit like so:
Debugging in the Notebook
With the Python kernel, you can turn on the interactive debugger using the magic command %pdb. When you cause an error, you'll be able to inspect the variables in the current namespace.
https://ipython.readthedocs.io/en/stable/interactive/magics.html
Built-in magic commands — IPython 8.20.0 documentation
‘gtk3’, ‘gtk4’, ‘inline’, ‘ipympl’, ‘nbagg’, ‘notebook’, ‘osx’, ‘pdf’, ‘ps’, ‘qt’, ‘qt4’, ‘qt5’, ‘qt6’, ‘svg’, ‘tk’, ‘webagg’, ‘widget’, ‘wx’). If given, the corresponding matplotlib b
ipython.readthedocs.io
반응형