-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not find source code file when running in Jupyter lab #101
Comments
I've tested a few more and try to make this replicable.
|
It might be the same as #86 which was just published in 3.3.1. Try updating and check if your issue is fixed. |
The latest version 3.3.1 really does fixed it! Thanks! However it still doesn't work very well with xeus-python, which seems to be less of an issue now that jupyter can debug using regular ipykernel. line_profiler/line_profiler/line_profiler.py Line 203 in 3994c2a
The xeus-python's temp folders are named like: /tmp/xpython_43854/72582958.py |
@aeryen Feel free to make a PR adding that check. I'm glad to unofficially support xeus if it is just a one line change (I really don't know much about what it is, I suppose a C++ re implementation of Jupyter?). |
Hi thanks for letting me do that! I've just made a PR with one line change. |
Maybe it's me being silly but.
Symptom:
when running in jupyter lab the following command
%lprun -f some_function some_function()
So essentially it can't find a corresponding .py source code to match function content.
My environment is
ipykernel 6.4.0
ipython 7.27.0
jupyter-client 7.0.2
jupyter-core 4.7.1
jupyter-lsp 1.4.1
jupyter-server 1.11.0
jupyterlab 3.1.11
jupyterlab-lsp 3.8.1
jupyterlab-pygments 0.1.2
jupyterlab-server 2.8.1
jupyterlab-widgets 1.0.1
line-profiler 3.3.0
I'm using XEUS-Python 3.8, I've also tested with the regular ipykernel Python 3.8, also doesn't work.
The folder it's attempting to find, /tmp/xpython_38521 is not created in the first place.
However I notice that if i turn on jupyter lab debug mode , the folder will show up but the .py file is still not there.
I think yesterday when i first time used lprun it worked once!
However some how 5min later it stopped working.
The text was updated successfully, but these errors were encountered: