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: Fix issue #23497 #23498

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

Social-Mean
Copy link
Contributor

Description of Changes

  • Wrote at least one-line docstrings (for any new functions)
  • Added unit test(s) covering the changes (if testable)
  • Included a screenshot or animation (if affecting the UI, see Licecap)

Issue(s) Resolved

Fixes #23497

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: @Social-Mean

@pep8speaks
Copy link

pep8speaks commented Jan 17, 2025

Hello @Social-Mean! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2025-01-17 11:51:49 UTC

@Social-Mean Social-Mean changed the title Fix issue #23497 PR: Fix issue #23497 Jan 17, 2025
@Social-Mean Social-Mean marked this pull request as ready for review January 17, 2025 11:58
@Social-Mean
Copy link
Contributor Author

This PR is a supplement to #23444

Copy link
Member

@ccordoba12 ccordoba12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Social-Mean, quick feedback for your about your proposed solution.

Comment on lines +295 to +298
# Avoid conflicts with `--connect-to-kernel` option. See issue #23497
# for more information.
if connection_file is not None:
return
Copy link
Member

@ccordoba12 ccordoba12 Jan 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will prevent opening the project passed through the command line, which would seem like an error to users. So, I don't think this is the right solution.

Instead, I propose to add a method to the IPython console called _handle_connect_to_kernel_cli that would receive connection_file and could be called after open_project below.

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.

Reopen last project command line option conflicts with the new connect to kernel one
3 participants