如何在远程linux服务器中查看python代码的结果

我想在Linux远程服务器上运行python代码。我只能使用命令行。我在命令行中使用以下代码:

python3 mycode.py

My code starts to run but I cannot see any thing. I use putty for connecting to server. I cannot type any other commands. enter image description here

如果重新启动连接,我也看不到任何结果。 我没有任何GUI。如何查看代码结果?

评论
  • frem
    frem 回复

    You need to foward the X11 server:

    ssh -X user@server
    

    Your remote host also needs to be configured to allow X11 to be forwarded. More details in this StackExchange reply.