Skip to content

Conversation

@dalthviz
Copy link
Member

@dalthviz dalthviz commented Dec 1, 2025

Add remote terminal menu from remote client connections info and also:

  • Add reload toolbar action
  • Set script loading to blocking
  • Fix fitAddon call when it is still undefined

A preview:

remote_terminal

Also:

- Add reload toolbar action
- Set script loading to blocking
- Fix fitAddon call when term is undefined
@dalthviz dalthviz added this to the v1.3.0 milestone Dec 1, 2025
@dalthviz dalthviz self-assigned this Dec 1, 2025
@dalthviz dalthviz changed the title PR: Add remote terminal menu from remote client connections info PR: Add remote terminal menu using remote client connections info Dec 2, 2025
@dalthviz dalthviz marked this pull request as ready for review December 2, 2025 21:46
@dalthviz dalthviz requested a review from ccordoba12 December 2, 2025 21:56
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.

Great work here, thanks @dalthviz!

Besides the few comments and suggestions I left for you below, I'd also like to mention that, according to the gif you posted, a remote console seems to be created on top of the current one. But I think that's not the right UX. Instead, we should open a new tab for remote consoles.

from spyder.utils.programs import find_program
from spyder.widgets.tabs import Tabs
from spyder.utils.misc import select_port
from spyder.plugins.remoteclient.widgets import AuthenticationMethod
Copy link
Member

Choose a reason for hiding this comment

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

I think we should move this enum to spyder.plugins.remoteclient.api.protocol to prevent breaking this or other external plugins in the future.

Do you prefer to do that for 6.1.2 or leave it for 6.2?

Copy link
Member Author

Choose a reason for hiding this comment

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

Making a change to that enum will break things as are currently implemented here so I guess 6.2 makes more sense

Copy link
Member Author

Choose a reason for hiding this comment

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

Also the current minimum Spyder version that technically the plugin supports is 6.0.0. Due to that I ended up changing the use of ClientType for the AuthenticationMethod class here (8c79b88). Following that, maybe should the Spyder minimum version requirement be changed in this PR too and instead use here the ClientType class?

Copy link
Member

Choose a reason for hiding this comment

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

Following that, maybe should the Spyder minimum version requirement be changed in this PR too and instead use here the ClientType class?

Yeah, I think that's a better idea. Please set spyder>=6.1.0 as the min version and drop support for Python 3.8 too because 6.1 doesn't support that Python version anymore.

@dalthviz
Copy link
Member Author

dalthviz commented Dec 3, 2025

I'd also like to mention that, according to the gif you posted, a remote console seems to be created on top of the current one. But I think that's not the right UX. Instead, we should open a new tab for remote consoles.

I think that's due to the way the plugin works. Also noticed that when creating a normal new terminal but haven't checked on detail why that works that way. Is that behavior something that should be changed in this PR too?

@ccordoba12
Copy link
Member

Is that behavior something that should be changed in this PR too?

Yep, please do that because the current UX is basically wrong: we can't replace a terminal with a new, remote one.

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.

2 participants