You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reproduced the issue after updating with conda update spyder (or pip, if not using Anaconda) This step failed (see Can't update Spyder from with Spyder 6.0.1 #23157 ) but the menus look no different on another machine with Spyder 6.0.2 . So I assume the feature isn't yet implemented in 6.0.2 .
Could not reproduce inside jupyter qtconsole (if console-related)
Tried the other applicable steps from the Troubleshooting Guide
Completed the Problem Description, Steps to Reproduce and Version sections below
Problem Description
I'd like to run scripts with dependencies beyond the standard library modules on a remote server. I want to do that with the new remote connection feature that doesn't require shuffling around a .json file.
Currently I don't see a simple way to install packages on the remote server. There is a workaround however:
import subprocess
import sys
new_packages = ["parse"] # Will install the package parse from PyPI.
subprocess.check_output([sys.executable, "-m", "pip", "install"] + new_packages)
Running this in the remote console installs the package on the remote machine.
What steps reproduce the problem?
Configure a remote server for ssh access (I used a machine with Linux Mint).
If not present, set up a remote connection to the server with Tools/Manage remote connections.../New connection. I used username and password access.
Open a remote console with Consoles/New console in remote server/New console in server
Enter import parse in the remote console (bottom right). Error: ModuleNotFoundError: No module named 'parse'
I couldn't figure out a convenient way to install the parse package on the remote machine (but the workaround above works).
What is the expected output? What do you see instead?
I'd like to get a console where I can install packages on the remote machine with commands like mamba install parse or pip install -r requirements.txt.
There is no menu option to access such a system console on the remote machine.
Versions
Spyder version: 6.0.2
Python version: 3.12.7 64-bit
Qt version: 5.15.8
PyQt version: 5.15.9
Operating System name/version: Linux 5.15.0-122-generic (x86_64) a.k.a. Linux Mint
Issue Report Checklist
conda update spyder
(orpip
, if not using Anaconda)This step failed (see Can't update Spyder from with Spyder 6.0.1 #23157 ) but the menus look no different on another machine with Spyder 6.0.2 . So I assume the feature isn't yet implemented in 6.0.2 .jupyter qtconsole
(if console-related)spyder --reset
Problem Description
I'd like to run scripts with dependencies beyond the standard library modules on a remote server. I want to do that with the new remote connection feature that doesn't require shuffling around a .json file.
Currently I don't see a simple way to install packages on the remote server. There is a workaround however:
Running this in the remote console installs the package on the remote machine.
What steps reproduce the problem?
import parse
in the remote console (bottom right). Error:ModuleNotFoundError: No module named 'parse'
parse
package on the remote machine (but the workaround above works).What is the expected output? What do you see instead?
I'd like to get a console where I can install packages on the remote machine with commands like
mamba install parse
orpip install -r requirements.txt
.There is no menu option to access such a system console on the remote machine.
Versions
Dependencies
The text was updated successfully, but these errors were encountered: