You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 556716e
Browse filesBrowse the repository at this point in the historyBrowse files
Allow to show a table in the IPython notebook using dataTables.
This feature existed but was broken
(astropy#3937 (comment)).
Here a new method `show_in_notebook` is added to render a table. The dataTables
js file is loaded with requirejs, and a lightweight css style is added using
Bootstrap (already available in the notebook).
"""Provides an interactive HTML export of a Table.
100
90
@@ -138,31 +128,26 @@ def css_urls(self):
138
128
returnconf.css_urls
139
129
140
130
def_jstable_file(self):
141
-
# downloaded from http://datatables.net/download/build/
"""Render the table in HTML and show it in the IPython notebook.
866
+
867
+
Parameters
868
+
----------
869
+
tableid : str or `None`
870
+
An html ID tag for the table. Default is ``table{id}``, where id
871
+
is the unique integer id of the table object, id(self).
872
+
table_class : str or `None`
873
+
A string with a list of HTML classes used to style the table.
874
+
Default is "display compact", and other possible values can be
875
+
found in http://www.datatables.net/manual/styling/classes
876
+
css : string
877
+
A valid CSS string declaring the formatting for the table. Default
0 commit comments