Skip to content
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: Improve displaying several kernel error messages (IPython console) #23230

Merged
merged 3 commits into from
Dec 12, 2024

Conversation

ccordoba12
Copy link
Member

@ccordoba12 ccordoba12 commented Dec 9, 2024

Description of Changes

  • Use SpyderKernelError for errors whose cause we are certain of. That displays just the error message, nicely formatted in the console, instead of a long traceback.
  • Improve SpyderKernelError docstring to describe its proper usage.

Visual changes

Message when jupyter_runtime_dir() is not writable

Before After
imagen imagen

Issue(s) Resolved

Fixes #23124

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: @ccordoba12

@ccordoba12 ccordoba12 marked this pull request as ready for review December 12, 2024 01:00
@ccordoba12 ccordoba12 merged commit 7318cca into spyder-ide:master Dec 12, 2024
17 checks passed
@ccordoba12 ccordoba12 deleted the issue-23124 branch December 12, 2024 15:37
@ccordoba12
Copy link
Member Author

@meeseeksdev please backport to 6.x

meeseeksmachine pushed a commit to meeseeksmachine/spyder that referenced this pull request Dec 12, 2024
ccordoba12 pushed a commit that referenced this pull request Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PermissionError when writing kernel connection file
1 participant