Git Product home page Git Product logo

tabipy's Introduction

tabipy's People

Contributors

damontallen avatar ianalis avatar takluyver avatar

Stargazers

Rajendra Agrawal avatar  avatar jaska avatar 8dspaces avatar Jonathan Barratt avatar Angus H. avatar Taurus Olson avatar Jason Chaw avatar Dmitry Kulikov avatar  avatar Adam Gibson avatar 강성진 sungjin.kang avatar Will Furnass avatar Michelle Gill avatar Emre Aladağ avatar Jeffrey Zitelli avatar Francisco de la Peña avatar  avatar

Watchers

 avatar James Cloos avatar  avatar  avatar

tabipy's Issues

Tests

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.

Color vs colour

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?

Cells Spanning Multiple Row and Column plus Embedded Images

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.

Create installable package

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

Produce LaTeX

A LaTeX view of tables can be produced by adding a _repr_latex_ method to the Table class.

Format strings per column

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'))

Investigate styling in LaTeX

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.