Skip to content

Commit

Permalink
Remote client: Use spyder-kernels version from the IPython console
Browse files Browse the repository at this point in the history
- That's for consistency with other places we use it.
- Also, fix some small style issues.
  • Loading branch information
ccordoba12 committed Aug 22, 2024
1 parent f550b30 commit 1031894
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions spyder/plugins/remoteclient/utils/installation.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
# Copyright © Spyder Project Contributors
# Licensed under the terms of the MIT License
# (see spyder/__init__.py for details)
from spyder.dependencies import SPYDER_KERNELS_REQVER

from spyder.plugins.ipythonconsole import SPYDER_KERNELS_VERSION


SERVER_ENTRY_POINT = "spyder-server"
Expand All @@ -13,10 +14,15 @@

ENCODING = "utf-8"

SCRIPT_URL = f"https://raw.githubusercontent.com/spyder-ide/{PACKAGE_NAME}/master/scripts"
SCRIPT_URL = (
f"https://raw.githubusercontent.com/spyder-ide/{PACKAGE_NAME}/master/scripts"
)

def get_installer_command(platform: str) -> str:
if platform == "win":
raise NotImplementedError("Windows is not supported yet")

return f'"${{SHELL}}" <(curl -L {SCRIPT_URL}/installer.sh) "{PACKAGE_VERSION}" "{SPYDER_KERNELS_REQVER}"'
return (
f'"${{SHELL}}" <(curl -L {SCRIPT_URL}/installer.sh) '
f'"{PACKAGE_VERSION}" "{SPYDER_KERNELS_VERSION}"'
)

0 comments on commit 1031894

Please sign in to comment.