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 af44685
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.
863
+
864
+
Parameters
865
+
----------
866
+
tableid : str or `None`
867
+
An html ID tag for the table. Default is ``table{id}``, where id
868
+
is the unique integer id of the table object, id(self).
869
+
table_class : str or `None`
870
+
A string with a list of HTML classes used to style the table.
871
+
Default is "display compact", and other possible values can be
872
+
found in http://www.datatables.net/manual/styling/classes
873
+
css : string
874
+
A valid CSS string declaring the formatting for the table. Default
0 commit comments