ipy_table is a supporting module for IP[y]:Notebook which makes it easy to create formatted data tables.
To create a table in interactive mode, import ipy_table and call make_table() on an array.
Notes:
from ipy_table import *
planets = [
['Planet', 'Mass (kg)', 'Diameter (km)'],
['Mercury', 3.3022E23, 4879],
['Venus', 4.896E24, 12104],
['Earth', 5.972E24, 12735],
['Mars', 6.4191E23, 6772]];
make_table(planets)
Planet | Mass (kg) | Diameter (km) |
Mercury | 330219999999999996854272.0000 | 4879 |
Venus | 4896000000000000201326592.0000 | 12104 |
Earth | 5972000000000000327155712.0000 | 12735 |
Mars | 641910000000000065536000.0000 | 6772 |
Planet | Mass (kg) | Diameter (km) |
Mercury | 330219999999999996854272.0000 | 4879 |
Venus | 4896000000000000201326592.0000 | 12104 |
Earth | 5972000000000000327155712.0000 | 12735 |
Mars | 641910000000000065536000.0000 | 6772 |
Planet | Mass (kg) | Diameter (km) |
Mercury | 3.302E+23 | 4879 |
Venus | 4.896E+24 | 12104 |
Earth | 5.972E+24 | 12735 |
Mars | 6.419E+23 | 6772 |
Planet | Mass (kg) | Diameter (km) |
Mercury | 3.302E+23 | 4879 |
Venus | 4.896E+24 | 12104 |
Earth | 5.972E+24 | 12735 |
Mars | 6.419E+23 | 6772 |