Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
2 of 3 tasks
mfripp opened this issue May 17, 2019 · 1 comment
Open
2 of 3 tasks

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

mfripp opened this issue May 17, 2019 · 1 comment
Labels
enhancement 🌟 New feature ideas good first issue Good for new contributors help wanted Help is desired

Comments

@mfripp
Copy link

mfripp commented May 17, 2019

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)

@pepicello
Copy link

Totally agree, it is especially harder to read with pandas dataframes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement 🌟 New feature ideas good first issue Good for new contributors help wanted Help is desired
Projects
None yet
Development

No branches or pull requests

3 participants