Open zero-jack opened 2 years ago
What is your line_profiler version ? You didn't include it in your report.
Updated Information
line-profiler 3.3.0 pypi_0 pypi
line_profiler 3.4.0 py37hbd76527_1 conda-forge
Seems to work for me:
(pyenv3.9.9) joncrall@toothbrush:~$ jupyter --version
Selected Jupyter core packages...
IPython : 8.1.1
ipykernel : 6.6.1
ipywidgets : 7.7.0
jupyter_client : 7.1.0
jupyter_core : 4.9.1
jupyter_server : not installed
jupyterlab : not installed
nbclient : 0.5.9
nbconvert : 6.4.0
nbformat : 5.1.3
notebook : 6.4.10
qtconsole : 5.2.2
traitlets : 5.1.1
This is with line_profiler 3.5.0
I then upgraded my jupyter packages and got the same correct result:
IPython : 8.1.1
ipykernel : 6.10.0
ipywidgets : 7.7.0
jupyter_client : 7.1.2
jupyter_core : 4.9.2
jupyter_server : 1.15.6
jupyterlab : 3.3.2
nbclient : 0.5.13
nbconvert : 6.4.5
nbformat : 5.2.0
notebook : 6.4.10
qtconsole : 5.2.2
traitlets : 5.1.1
Maybe try updating your versions? Although if this is an error because of IPython 7.x instead of 8.x we probably should fix it. (can't test that atm).
@Erotemic I confused that I got error running in jupyter lab and why should it upgrade IPython at 8.x? It's ok at IPython at 7.x for me.
Problem
Still getting this error when running
%lprun -f take_sqr take_sqr([1,2,3])
ENV
But it's ok when running in iPython.