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: Pass connection file when opening console #422

Merged
merged 2 commits into from
Jun 25, 2023

Conversation

jitseniesen
Copy link
Member

Before, we passed the kernel ID when calling create_client_for_kernel() in the IPython Console plugin. This worked, even though that function expected the connection file, because that function used find_connection_file() to fix the path to the connection file. After the refactor in PR spyder-ide/spyder#19062, the argument passed for the connection file is expected to be really the file path and no attempt to fix it is made, so now we have to really pass the connection file.

Fixes #421.

Here is a GIF of the console in action:

notebook-console

@jitseniesen jitseniesen added this to the v0.5 milestone May 8, 2023
@jitseniesen jitseniesen self-assigned this May 8, 2023
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.

Looks good to me, thanks @jitseniesen!

Before, we passed the kernel ID when calling `create_client_for_kernel()` in the IPython
Console plugin. This worked, even though that function expected the connection file, because
that function used `find_connection_file()` to fix the path to the connection file. After the
refactor in PR spyder-ide/spyder#19062, the argument passed for the connection file is
expected to be really the file path and no attempt to fix it is made, so now we have to
really pass the connection file.
@jitseniesen jitseniesen merged commit 3e16ad0 into spyder-ide:master Jun 25, 2023
@jitseniesen jitseniesen deleted the open-console branch June 25, 2023 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Connection file not found when opening console
2 participants