Construct tables for rich display in IPython that will also render in LaTeX.
For usage details, see the example notebook and its rendered LaTeX output.
Display tables in IPython
License: BSD 3-Clause "New" or "Revised" License
Construct tables for rich display in IPython that will also render in LaTeX.
For usage details, see the example notebook and its rendered LaTeX output.
They're a good idea. We should write some, and then set up Travis CI to run them on each push with supported Python versions.
Since both matplotlib and HTML refer to color instead of colour, should we also add bg_color
and text_color
as alternative names to bg_colour
and text_colour
, respectively?
I'm trying to implement cells spanning multiple rows and columns in my fork. I've completed dealing with it in the TableCell class for both LaTex and HTML with the caveat that LaTex requires the inclusion of the 'multirow' package in the document preamble, e.g. \usepackage{multirow}. I still need to work on dealing with the TableRow class before it will be working.
Also since some of my tables will include HTML image tags with both local and remote content, I added a converter for a bare HTML img tag to a LaTex '\includegraphics{file_name.png}'. Due to my limited experience with LaTex, it will only be able to support png and jpg image types for the immediate future. How I deal with remote content is that it is downloaded into a directory named tmp_img before passing back the LaTex conversion.
I've included a couple of files I've been working with to test concepts in the repository. A LaTex document called 'Single Cell boxed.tex' that I've used to test table syntax, and a IPython Notebook (version 2.3.1) where I've been editing tabipy.py and testing HTML tables. I thought you might want to refer to them if you decide to do a little experimenting.
Just to clarify, for now my version of tabipy.py is none functional and will remain that way until the TableRow class is made to handle cells spanning multiple rows and or columns.
Lastly, I'm not sure if this should have been opened up as an issue or simply an email but I thought if someone else got industrious before I finished my version they could use my work as a starting point.
We need to resolve a few nonprogramming issues before we can convert this project into an installable package:
License
Any open source license is fine by me.
Author, author_email
Supported Python versions
I only use Python 2.7 but we can revise the code to support Python 3
A LaTeX view of tables can be produced by adding a _repr_latex_
method to the Table class.
Being able to specify a format string per column would make for a nice addition e.g.
t = Table(TableHeaderRow(('A', 'B', 'C')), format=('%.2g', '%i', '%3.4g'))
The user can set text colour and background colour for cells, and this shows up in the HTML. Is it possible for it to apply to LaTeX as well?
From discussion on #1, it may require third party packages, which is less than optimal.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.