Pycharm/VS Code for remote code editing with remote python interpreter (via SSH)? - ssh

My Python code as well as my Python environment are on a remote server. I can access this server from my thin client via SSH. I'd like to use Pycharm or VS Code for remote editing. In order to use smart code navigation and autocompletion the IDE should also access the remote Python interpreter. I am aware of plugins for SSH remote editing but I haven't seen any integrations of remote interpreters. Any suggestions would be greatly appreciated.

PyCharm Professional has support for remote interpreters. The code base though needs to be local.

Related

Remote development (from PhpStorm with JetBrains Gateway) without internet possible?

Here is my working context;
no internet (I use my company's intranet)
Linux CentOS 7.9 remote server with my source files
PhpStorm 2021.3.2 on my development PC
My wish is to develop on my PC on remote sources. Your new JetBrains Gateway solution seems to meet my expectations on paper.
However, in practice, I have the impression that it is not possible to use this solution without internet ? Indeed, the connection process stops on this failure:
Looks like your solution is trying to download an IDE client to install on my machine. Which from my point of view is a weird behavior because I already have a client to install on my machine: PhpStorm. Why not use my PhpStorm client already installed on my machine ?
Thank you for your reply
The "Jetbrains Client" mentioned in the error message is not for your local machine, but for the Linux server:
Once the IDE version and project directory are selected, Gateway will download the IDE to the remote server, unpack it, and launch it with your project loaded.
It acts on the remote server as a "backend IDE" to which the client on your local machine connects:
The JetBrains Client runs locally and provides the user interface for the IDE backend.
You would not even require the full PHPStorm IDE, the Jetbrains Gateway is a standalone app that comes with a "thin client" that can connect to the backend IDE:
This whole process is managed by JetBrains Gateway, a new, compact, standalone app that provides everything you need to get started with remote development. Since it’s standalone, it’s the only thing you need to install locally to start working and is ideal for less powerful laptops and in cases where a full IDE install isn’t desired.
See https://blog.jetbrains.com/blog/2021/12/03/dive-into-jetbrains-gateway/ for a more detailed look at how it works.
To answer your question: it is not possible to use Jetbrains Gateway without an internet connection.

Connect eikon/refinitiv from RStudio

I have not found a solution posted how to download data from eikon/Refinitiv (I have my login/password) from my RStudio session that runs on a Unix server?
"eikonapir" seems to not work since it seems to required to run on an Windows OS.
Any help is appreciated.
What I have learned since posting this question is that:
RStudio running on a Unix system does not allow to connect to Refinitiv.
However, running locally (on my Windows Desktop) the Refinitiv application in the background using an advanced license and using a locally installed RStudio along with library(DatastreamDSWS2R) allows to connect to Refintiv's Datastream service.
While there could, of course, be an alternative solution and certainly a more technical explanation, I hope this does help.

Pycharm Remote Dev using SFTP with Yubi Key authentication

I have PyCharm Pro. I am trying to do remote development on a server. I have read the following Jetbrains tutorials:
Deploying Applications
Remote Development on Raspberry Pi
as well as the very helpful tutorial:
Remote debugging with pycharm the missing tutorial
While I seem to be able to set everything up, authentication fails when I try to connect to the remote server using the 'SFTP' protocol. I can make an SSH and SFTP connection from the CLI in a terminal so I know the ssh configuration settings are correct. However, in my case authentication requires ssh and having a Yubi key connected to my laptop. Does that make a difference?
Has anyone had a similar issue? If so, how did you resolve it?
On MacOS the challenge is where the IDE is getting it's ssh socket agent. To make this work in my case I have to launch the PyCharm Pro IDE from a terminal.
Go to '/Applications/PyCharm.app/Contents/MacOS' directory and launch with './pycharm'

Running scraper bot on remote server

Is there a way to run python script which uses selenium on remote linux server?
I would like to connect via ssh, upload the script and have it working 24/7.
But I am not sure if such script which normally is based on interacting with browser would work.
This script logins to facebook and then do some stuff which help me with my work and I would like to put it on remote server so I don't have to run my pc all thetime.
Thanks in advance.
This is definitely doable, what u need can be simplified to:
your scraper script (python is installed on some Unix machines, so no
need to worry about the runtime environment)
cron job (CI server if you need some more complex behavior)
selenium driver binaries
Xvfb setup
(optional) some deploy.sh that will automatically put your new code versions on the VM

Automated UI testing on remote computers without installing anything remotely

Which options do we have to do automated UI testing on remote computers connected via RDP, if I don't want to install anything on the remote computer?
My only idea is to open the rdp session always in the same way and use recorded mouse and key strokes, but there are some disadvantages, e.g. I assume it's slow?
Anyways, do you know any open source or proprietary tools I can use? Best would be that I have to install nothing on the remote machine and play the record on my local machine.
Starting with UFT 11.50 (previously known as QTP) there is support for image based testing.
You can have one machine with UFT installed and replay on other machines via RDP using Insight UFT's image based automation solution.
eggPlant Functional allows you to automate the UI of any app on Windows machines using an RDP connection. It's pretty fast assuming you are connecting over a decent network, and you don't need to install anything additional on the target machine.