如何在pycharm中启用x-11转发?连接到无业游民或远程ssh时? [英] how can I enable x-11 forwarding in pycharm? when connecting to vagrant or a remote ssh?

查看:155
本文介绍了如何在pycharm中启用x-11转发?连接到无业游民或远程ssh时?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows中使用pycharm,但是python后端需要在unix上运行,因此我在vauntant的ubuntu中托管了python应用/代码,但是我也需要做一些绘图,有没有一种我可以启用matplotlab的方法用流浪汉在pycharm中密谋?谢谢

I am using pycharm in windows but the python backend need to be running on unix so I host the python app/code in ubuntu with vagrant, however I need to do some plotting as well, is there a way I can enable matplotlab plotting in pycharm with vagrant? thanks

推荐答案

尝试在PyCharm运行配置中设置DISPLAY环境变量,如下所示:

Try to set DISPLAY environment variable in PyCharm run configuration like this:

DISPLAY=localhost:10.0

我从无所事事的ssh连接中获得了显示价值

I got my display value from vagrant ssh connection

vagrant@vagrant:$ echo $DISPLAY
localhost:10.0

这篇关于如何在pycharm中启用x-11转发?连接到无业游民或远程ssh时?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆