[Linux] Pycharm remotely connects to Ubuntu server, debugs code, and visualizes

  1. Set up SSH
    Insert picture description here

Insert picture description here

  1. Set interpreter
    Insert picture description here
    Insert picture description here

  2. Visualization
    Output ipconfig in the cmd command line to view the local ip address.
    Insert picture description here
    Insert picture description here
    In the code file to be run, add environment variables DISPLAY=******:0.0(where ****** refers to your windows ip address).
    Insert picture description here
    If you want to achieve graphical in the terminal, First create a new terminal
    Insert picture description here
    and enter in the terminal export DISPLAY=******:0.0(****** refers to your windows ip address), and then you can visualize
    Insert picture description here

Reference:
PuTTY + Xming to install Oracle graphically

Guess you like

Origin blog.csdn.net/weixin_38705903/article/details/111059681