Skip to content

Variable width font for Pandas tables in Hydrogen output area #1622

Open
@mfripp

Description

@mfripp

Description:

Prior to September 2018, the Hydrogen output area used a variable width font (Arial or similar), which worked well for general text output or Pandas' formatted data tables. However, in September 2018, a change was applied to styles/hydrogen.less, to use a monospaced font for the output area. See here. This causes my editor to use Courier New (or similar) for output, which is lighter, looser-spaced and less legible than Arial. This makes most output less attractive, less information-dense and harder to read.

I restored the older, more attractive behavior by going to Atom > Preferences > Packages > Hydrogen > View Code > styles > hydrogen.less > Output Area > .multiline-container, then commenting out "font-family: monospace;". But most users would not want to do that.

Would it be possible to add a "Font for output area" option to Hydrogen, for users who prefer a variable-width font for the output area?

Steps to Reproduce:

  1. Create a file with a .py extension
  2. Execute "Hydrogen: Toggle Output Area" command to activate output area
  3. Type this command: import pandas; pandas.DataFrame({'a': [1, 2], 'b': [3, 4]}) and press cmd-return or ctrl-Enter
  4. Observe that the resulting table is shown in a light monospaced font

Versions:

Atom : 1.32.2
Electron: 2.0.9
Chrome : 61.0.3163.100
Node : 8.9.3

Plugins:

Do you have any Hydrogen plugins installed and active?

  • hydrogen-python
  • Hydrogen Launcher
  • Data Explorer

Logs:

(N/A)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions