-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
PR: Profile in the IPython console to gain access to variables and get a result in case of cancellation #15372
base: master
Are you sure you want to change the base?
Conversation
Hello @impact27! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2024-05-30 20:26:08 UTC |
0a9c4ad
to
e37c27a
Compare
Hey @impact27, please post an animated gif/video of the new behavior. |
List of improvements:
|
0484272
to
64e10e9
Compare
0a78e3e
to
5a4132d
Compare
ed22c43
to
3a81372
Compare
ae69c07
to
c66060b
Compare
@impact27, so this replaces the existing "Run profiler" menu item with "Profile file" and "Profile cell", correct? And the heavy lifting is moved to If the above is correct, then I agree that this PR should resolve #18010 and obviate PR #18031. |
Yes exactly, the profiling would happen in the spyder-kernel, so there would be no difference with runfile and debugfile |
@impact27 and @ccordoba12, when will this PR be ready for review? Should this be included in 5.3.2 milestone? |
This is ready for review, assuming the tests pass when they are fixed |
If the IPythonConsole will profile the files, we would prefer to use the viewer run API instead. |
075e4cc
to
cbbb9e9
Compare
…github.com/impact27/spyder-kernels.git external-deps/spyder-kernels subrepo: subdir: "external-deps/spyder-kernels" merged: "e5f76b33f" upstream: origin: "https://github.com/impact27/spyder-kernels.git" branch: "improve_namespace" commit: "e5f76b33f" git-subrepo: version: "0.4.5" origin: "https://github.com/ingydotnet/git-subrepo" commit: "aa416e4"
…github.com/impact27/spyder-kernels.git external-deps/spyder-kernels subrepo: subdir: "external-deps/spyder-kernels" merged: "9e8773c81" upstream: origin: "https://github.com/impact27/spyder-kernels.git" branch: "improve_namespace" commit: "9e8773c81" git-subrepo: version: "0.4.5" origin: "https://github.com/ingydotnet/git-subrepo" commit: "aa416e4"
@impact27, please update this PR to see if we can merge it next. |
…github.com/impact27/spyder-kernels.git external-deps/spyder-kernels subrepo: subdir: "external-deps/spyder-kernels" merged: "920e94057" upstream: origin: "https://github.com/impact27/spyder-kernels.git" branch: "improve_namespace" commit: "920e94057" git-subrepo: version: "0.4.5" origin: "https://github.com/ingydotnet/git-subrepo" commit: "aa416e4"
…github.com/impact27/spyder-kernels.git external-deps/spyder-kernels subrepo: subdir: "external-deps/spyder-kernels" merged: "af3fe0a6e" upstream: origin: "https://github.com/impact27/spyder-kernels.git" branch: "improve_namespace" commit: "af3fe0a6e" git-subrepo: version: "0.4.5" origin: "https://github.com/ingydotnet/git-subrepo" commit: "aa416e4"
…om/impact27/spyder-kernels.git external-deps/spyder-kernels subrepo: subdir: "external-deps/spyder-kernels" merged: "281be2ba8" upstream: origin: "https://github.com/impact27/spyder-kernels.git" branch: "improve_namespace" commit: "281be2ba8" git-subrepo: version: "0.4.5" origin: "https://github.com/ingydotnet/git-subrepo" commit: "aa416e4"
…github.com/impact27/spyder-kernels.git external-deps/spyder-kernels subrepo: subdir: "external-deps/spyder-kernels" merged: "9acc3dd22" upstream: origin: "https://github.com/impact27/spyder-kernels.git" branch: "improve_namespace" commit: "9acc3dd22" git-subrepo: version: "0.4.5" origin: "https://github.com/ingydotnet/git-subrepo" commit: "aa416e4"
…github.com/impact27/spyder-kernels.git external-deps/spyder-kernels subrepo: subdir: "external-deps/spyder-kernels" merged: "53b9706d9" upstream: origin: "https://github.com/impact27/spyder-kernels.git" branch: "improve_namespace" commit: "53b9706d9" git-subrepo: version: "0.4.5" origin: "https://github.com/ingydotnet/git-subrepo" commit: "aa416e4"
Description of Changes
Add
profile_file
andprofile_cell
functions to the shell with the same signature asruncell
/debugcell
andrunfile
/debugfile
This solves a few issues I have with profiling, including:
profile
,profilefile
,profilecell
magics spyder-kernels#451.Issue(s) Resolved
Fixes #2378
Affirmation
By submitting this Pull Request or typing my (user)name below,
I affirm the Developer Certificate of Origin
with respect to all commits and content included in this PR,
and understand I am releasing the same under Spyder's MIT (Expat) license.
I certify the above statement is true and correct: