python-tabulate
TermKit
python-tabulate | TermKit | |
---|---|---|
24 | 20 | |
1,976 | 4,435 | |
- | - | |
0.0 | 0.0 | |
21 days ago | over 12 years ago | |
Python | JavaScript | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
python-tabulate
-
I don't always use LaTeX, but when I do, I compile to HTML (2013)
pandas.DataFrame().to_latex() [1] and tabulate [2] support latex table output.
[1] https://pandas.pydata.org/docs/reference/api/pandas.DataFram...
[2] https://github.com/astanin/python-tabulate/blob/master/tabul...
- Access LangChain with ChatGPT right from your CLI
- FLiPN-FLaNK Stack Weekly for 20 March 2023
-
Looking for help using the module table2ascii alongside pandas.
pandas uses tabulate
-
How can I create a class that will perform an action and return the corresponding table?
As a general piece of advice, the tabulate package is useful for neatly formatting spreadsheet-style data, as is the pandas package, although tabulate is much simpler to use.
-
Need help formatting output to use columns
There are ways to do it manually with padding/alignment, but using the built-in csv module to read the file and tabulate to format it is probably the easiest way.
-
Is there a better way to print() a table?
If you're not against a third-party library, consider tabulate.
-
Cleaning up some of my output.
You mean output to the terminal? You could use a module like tabulate or pandas to do that for you. You could also write a quick function yourself that does the same thing; that would be a fairly easy project. Just transpose the data, calculate the max length in each column, then print row by row while padding to the max length. Probably 8 lines of code.
- how do I make it so that I can print out a list in a formated way
- what is PIP and how do i use it? [ELI5]
TermKit
-
Waveterm
First time I saw an idea like this was with termkit [1], which I thought was great and was sad to see it didn't get continued development.
I really feel like we overlook the ways in which we limit ourselves by having our CLI interfaces be tied to a thing that emulates a terminal from the 80s.
The composability, scriptability, history, etc. of CLIs is great, but why should that preclude us from being able to quickly show a PNG or graph a function?
Maybe it's an idea whose time has come.
[1] https://github.com/unconed/TermKit
- Stable Fiddusion: Frequency-domain blue noise generator
- The Small Website Discoverability Crisis
- Hackery, Math and Design by Steven Mittens
-
Fuck It, We'll Do It Live
I'm impressed by this blog every time I see it, both visually and content-wise.
- Calculating dot products on GPU instead of CPU
-
Ask HN: Has anyone fully attempted Bret Victor's vision?
I agree with this. It's hard to nail down why Victor's talks are so compelling, when each of these items separately are much more mundane but are still quite well explored areas.
* "What if" feedback loops/direct manipulation
Victor's vision abstractly seems to be trying to predict/explore the consequence of some action in programming, and in specific demonstration seems to be using small widgets to allow easy manipulation of inputs to get an intuitive understanding of outputs. This could be boiled down to different goals: "Allow a program to be more easily tweaked" and "Explore a concept to get intuition of a different viewpoint". The more cynical/pragmatic interpretations for these are "make a GUI for your program" and "use interactive demos when teaching certain topics".
The first interpretation is almost comical, but we can maybe expand this to be "when you make a GUI, think about how your interface is being interpreted intuitively and this can help make your app more usable". This can maybe understood more easily when taken with the fact that Bret Victor helped design the interface for the first iPhone - famously intuitive to use. This also leads to its limitations - only concepts that have another more intuitive viewpoint can be represented. I can add a colour wheel to my WYSIWYG editor rather than hex values, but I can't easily create a GUI that lets me express that I want to validate, strip the whitespace from an email address and put it into lowercase.
The second interpretation leads to explorable explanations, which Victor has made a few of himself [0,1], but I would also cite Nicki Case [2] and unconed [3] as being other good examples. Again, this is only afforded to specific topics that have scope for exploration.
* Making logic feel more geometric/concrete
This can be seen in things like Labview (made in 1986), Apache NiFi (made in 2006) among others, e.g. SAS. In a sense, this has existed in the form of UNIX pipelines and functional programming since the first LISP was made. There is a further point which is "there currently aren't tools like this that are suitable for a non-programming audience", which is what 'Low Code' and 'No Code' is trying to achieve, but unfortunately in practice as soon as you hit a limitation of the framework then you're back to needing an engineer again.
* Human Interfaces
Sort of addressed in 'feedback loops' point above, but the DynamicLand is an interesting demo of what he's trying to get to. I think this speaks more to me with internet of things. I have friends who have set up full smart-home heating systems and can move music between rooms which are all very much seen the same as adjusting a physical thermostat rather than 'programming' or similar.
There is definitely a lot that can be explored here for certain applications, but there probably isn't direct utility in arranging pieces of paper with coloured dots on it in order to set the path of a robot. I can see this in a more consulting/capture sense of presenting certain input parameters in a more physical format, but again this is deviating from the OP's notion that this is a whole programming environment.
[0] http://worrydream.com/LadderOfAbstraction/
[1] http://worrydream.com/KillMath/
[2] https://ncase.me
[3] https://acko.net
-
B Com -> BE IT (Learning)
Just a ref: https://acko.net/
- this true?
-
Use.GPU
Cool, Steven Wittens is behind this. The header at https://acko.net/ is one of the first examples of WebGL I remember seeing in the wild, and still one of the cleanest. Looking forward to seeing where this goes!
What are some alternatives?
Pandas - Flexible and powerful data analysis / manipulation library for Python, providing labeled data structures similar to R data.frame objects, statistical functions, and much more
manim - A community-maintained Python framework for creating mathematical animations.
rich - Rich is a Python library for rich text and beautiful formatting in the terminal.
termy - A terminal with autocomplete
pytablewriter - pytablewriter is a Python library to write a table in various formats: AsciiDoc / CSV / Elasticsearch / HTML / JavaScript / JSON / LaTeX / LDJSON / LTSV / Markdown / MediaWiki / NumPy / Excel / Pandas / Python / reStructuredText / SQLite / TOML / TSV.
mathbox - Presentation-quality WebGL math graphing
textual - The lean application framework for Python. Build sophisticated user interfaces with a simple Python API. Run your apps in the terminal and a web browser.
consola - 🐨 Elegant Console Logger for Node.js and Browser
python-prompt-toolkit - Library for building powerful interactive command line applications in Python
manim - Animation engine for explanatory math videos
batgrl - badass terminal graphics library
playground-macos - My portfolio website simulating macOS's GUI, developed with React and UnoCSS.