Skip to content

Comments

PR: Pass connection file when opening console#422

Merged
jitseniesen merged 2 commits intospyder-ide:masterfrom
jitseniesen:open-console
Jun 25, 2023
Merged

PR: Pass connection file when opening console#422
jitseniesen merged 2 commits intospyder-ide:masterfrom
jitseniesen:open-console

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