News for hackers. Stuff that matters.
Re:Termgraph: Python CLI Tool to Draw Graphs by anon335dtzbvc on Friday July 27, 2018 @11:53AM (#17626870)
Re:Termgraph: Python CLI Tool to Draw Graphs by danso on Friday July 27, 2018 @09:42AM (#17625867)
Very nice. The agate library (by the same author of csvkit) also prints out text charts, though I don't think it has a CLI: http://agate.readthedocs.io/en/1.6.1/
Re:Termgraph: Python CLI Tool to Draw Graphs by ziotom78 on Friday July 27, 2018 @03:14PM (#17628427)
A similar idea is used in UnicodePlots [1], a Julia terminal plotting library. This kind of tools is very useful when you are connected to some HPC cluster and want to have a quick look at the contents of data files.

Of course, the approach is quite different, as Termgraph seems a stand-alone program, while UnicodePlots is a library.

[1] https://github.com/Evizero/UnicodePlots.jl

Re:Termgraph: Python CLI Tool to Draw Graphs by zenethian on Friday July 27, 2018 @11:53AM (#17626878)
I love this. It feels like a solution to a problem I never knew I had. I'm a very visual thinker, and there have been so many times where I wish I could summarize a volume of data into graphs without loading up Sheets.
Re:Termgraph: Python CLI Tool to Draw Graphs by rabidrat on Friday July 27, 2018 @04:02PM (#17628853)
You might want to try VisiData (https://visidata.org), for visual terminal-based exploration of data. Everyone loves the 'Shift+F' Frequency Table with histogram. Can also do scatter plots, filtering, transformation, and export.

[Disclaimer: I'm the creator of VisiData]

Re:Termgraph: Python CLI Tool to Draw Graphs by brennebeck on Saturday July 28, 2018 @12:53AM (#17631612)
This looks extremely useful. Thank you.
Re:Termgraph: Python CLI Tool to Draw Graphs by make3 on Friday July 27, 2018 @08:36AM (#17625472)
I wish you could display images in the command line. it would have so many cool applications
Re:Termgraph: Python CLI Tool to Draw Graphs by anonyte on Friday July 27, 2018 @08:57AM (#17625598)
Re:Termgraph: Python CLI Tool to Draw Graphs by pen2l on Friday July 27, 2018 @10:57AM (#17626406)
Some of these seem a little hacky.

Jupyter has sort of a terminal mode... I really think we should start using something like Jupyter as our main terminal.

Re:Termgraph: Python CLI Tool to Draw Graphs by afranchuk on Friday July 27, 2018 @09:03AM (#17625631)
Kitty terminal can too, and has designed a protocol for it: https://github.com/kovidgoyal/kitty/blob/master/docs/graphic...
Re:Termgraph: Python CLI Tool to Draw Graphs by laumars on Friday July 27, 2018 @10:07AM (#17626037)
There are so many unofficial escape sequences for rendering images in modern terminal emulators. Kitty has one, as does Terminology and iTerm (both different from each other). Then there is stuff like Sixel (supported by xterm), ReGIS (also supported by xterm but it's horrible to use) and other methods from VTs of old.

I really wish there was just one standard way to render images on the terminal (like there is one standard for rendering hyperlinks on the terminal), but there's an XKCD sketch somewhere about creating a standard to consolidate standards.

Re:Termgraph: Python CLI Tool to Draw Graphs by vram11 on Friday July 27, 2018 @06:10PM (#17629850)
Re:Termgraph: Python CLI Tool to Draw Graphs by makecheck on Friday July 27, 2018 @10:29AM (#17626207)
MacTerm implements Sixels, some of the bitmap graphics sequences from iTerm2, and TEK vector graphics.

Graphics are definitely not that widely supported though, making it hard for programs to reliably display images.

Re:Termgraph: Python CLI Tool to Draw Graphs by emredjan on Friday July 27, 2018 @08:56AM (#17625593)
Re:Termgraph: Python CLI Tool to Draw Graphs by mcintyre1994 on Friday July 27, 2018 @11:35AM (#17626730)
This is cool! Not sure why it's not in the docs, but iTerm 2 > Install Shell Integration will do this for you, if you let it install the Utilities too.
Re:Termgraph: Python CLI Tool to Draw Graphs by whatl3y on Friday July 27, 2018 @11:53AM (#17626876)
Although the image would open separately from the terminal window, Termgraph is cool and I might extend RESTcharts (https://github.com/whatl3y/restcharts) to support a CLI mode that would generate an image of a chart based on an input file, then open the image after it's created on the file system.
Re:Termgraph: Python CLI Tool to Draw Graphs by agumonkey on Friday July 27, 2018 @01:28PM (#17627599)
oh you sure can, ever seen a1kon donut ? https://www.google.com/search?hl=en&q=a1kon%20donut.c

also libcaca

ps: one day I'll make a terminal photoshop

Re:Termgraph: Python CLI Tool to Draw Graphs by m1keil on Friday July 27, 2018 @09:57AM (#17625966)
very nice. reminds me of https://github.com/bitly/data_hacks
Re:Termgraph: Python CLI Tool to Draw Graphs by ebikelaw on Friday July 27, 2018 @01:54PM (#17627772)
gnuplot> set term xterm
Re:Termgraph: Python CLI Tool to Draw Graphs by glic3rinu on Friday July 27, 2018 @03:53PM (#17628777)
would be nice if plots scale according to terminal width, so they fit in the screen without line wrapping :)
Re:Termgraph: Python CLI Tool to Draw Graphs by cup-of-tea on Friday July 27, 2018 @01:04PM (#17627393)
I actually wrote one of these myself years ago. I never finished it up for general use because I thought "someone must have done this already" so I just left it as a "util" buried in some project. I always seem to think the same thing.
Re:Termgraph: Python CLI Tool to Draw Graphs by lifeisstillgood on Friday July 27, 2018 @05:30PM (#17629578)
we all do - the difference is moving from scratching your itch to advertising your itch scratcher- find another one of your projects and show HN - worst case, you get to polish up some code