-
-
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 2025-01-14 17:16:51 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
…t-of-pr-22459-on-6.x Backport PR spyder-ide#22459 on branch 6.x (PR: Update workflows to run in the `6.x` branch (CI)) [ci skip]
…`update_edit_menu` at startup (Editor)) (spyder-ide#22439)
…agic on all operating systems (Config)) (spyder-ide#22462)
That correctly reflects what the next version is going to be. [ci skip]
PR: Fix development version
….spyder.appdata.xml) (spyder-ide#22475)
…e in-app appeal message) (spyder-ide#22477) Co-authored-by: Carlos Cordoba <[email protected]>
… in array editor to `''`) (spyder-ide#22488) Co-authored-by: Jitse Niesen <[email protected]>
…e hiding` state of all plugins before applying layout) (spyder-ide#22503) Co-authored-by: Carlos Cordoba <[email protected]>
…et env vars if Spyder is launched from a terminal (Utils)) (spyder-ide#22506) Co-authored-by: Carlos Cordoba <[email protected]>
…cess tree when running in Binder (IPython console)) (spyder-ide#22510) Co-authored-by: Carlos Cordoba <[email protected]>
…intenance instructions for backporting
…t-of-pr-22442-on-6.x Backport PR spyder-ide#22442 on branch 6.x (PR: Update contributing, release and maintenance instructions for backporting)
…hat stable releases are pulled above unstable ones (Installers)
…t-of-pr-22424-on-6.x Backport PR spyder-ide#22424 on branch 6.x (PR: Prioritize conda-forge channel so that stable releases are pulled above unstable ones (Installers))
…th` in consoles (IPython console)
…t-of-pr-22490-on-6.x Backport PR spyder-ide#22490 on branch 6.x (PR: Prevent error when updating `sys.path` in consoles (IPython console))
…github.com/impact27/spyder-kernels.git external-deps/spyder-kernels subrepo: subdir: "external-deps/spyder-kernels" merged: "40a123630" upstream: origin: "https://github.com/impact27/spyder-kernels.git" branch: "improve_namespace" commit: "40a123630" git-subrepo: version: "0.4.5" origin: "https://github.com/ingydotnet/git-subrepo" commit: "aa416e4"
@ccordoba12 I updated this PR to merge on 6.x but there are no tests running? |
Please move it back to master. We changed our development workflow and now everything is merged to master, and only bugfixes are backported (by doing cherry-picks) to 6.x. And the same goes for Spyder-kernels. |
@impact27, now 6.x and master are independent branches, so you can't perform merges between them (that's why your history now shows all backport PRs we created against 6.x, which can't be merged back to master because the code for them is already there). Do you want me to give you a hand to fix your branch? |
Yes that would be great thanks |
…github.com/impact27/spyder-kernels.git external-deps/spyder-kernels subrepo: subdir: "external-deps/spyder-kernels" merged: "88ea76ed5" upstream: origin: "https://github.com/impact27/spyder-kernels.git" branch: "improve_namespace" commit: "88ea76ed5" 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: