简体   繁体   English

氢包原子编辑器—奇怪的显示

[英]Hydrogen Package Atom Editor — Weird Display

recently I installed the Hydrogen package in the atom editor. 最近,我在原子编辑器中安装了Hydrogen软件包。 As my scripts do require user input and often an output based on the input as well, I would like to have a nice view on the output while being able to give input at the same time. 由于我的脚本确实需要用户输入,并且通常也需要基于输入的输出,因此我希望对输出有一个很好的了解,同时能够同时提供输入。

Right now, the input line is perfectly visible, however the output is blurred in the background of the editor. 现在,输入行完全可见,但是在编辑器的背景中输出模糊。 I put a picture down below, so you can see what I see. 我在下面放了一张图片,这样您就可以看到我所看到的。 (Input line: obviously visible. And response hardly visible on the right...) This is the picture (输入行:明显可见。而响应几乎不可见...) 这是图片

Does anyone know a fix? 有人知道解决方法吗?

[ I'd be fine with seeing the output in the atom-internal terminal as well, if I could enter the input in there too, in case hydrogen cannot be changed in such a way. [我也希望在原子内部端子中看到输出,如果我也可以在其中输入输入,以防氢不能以这种方式改变。 ] ]

You must have the Hydrogen package installed. 您必须安装氢气包。 Go to the package menu item and under this menu you should see an entry for Hydrogen. 转到程序包菜单项,在此菜单下,您应该看到氢气条目。 Clicking on this Hydrogen entry opens a menu as shown below. 单击此氢气条目将打开一个菜单,如下所示。

在此处输入图片说明

Clicking on "Run Cell" or "Run All" will execute your code and print output on screen at bottom of editor window. 单击“运行单元”或“全部运行”将执行您的代码并在编辑器窗口底部的屏幕上打印输出。 If you have an input statement you get a solid colored screen waiting for input. 如果您有输入语句,则会看到一个纯色的屏幕,等待输入。 I often use an input statement like this: 我经常使用这样的输入语句:

num = int(input("Enter a number: "))

and when I run this I first get the screen below waiting for user input. 当我运行它时,我首先得到下面的屏幕,等待用户输入。

在此处输入图片说明

Then after entering your data in the box and hitting return you'll get the editor screen back with Hydrogen output as shown below. 然后,在框中输入数据并按回车键后,您将返回带有氢气输出的编辑器屏幕,如下所示。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM