@@ -559,17 +559,30 @@ public fun <T> DataFrame<T>.toStandaloneHTML(
559
559
): DataFrameHtmlData = toStandaloneHtml(configuration, cellRenderer, getFooter)
560
560
561
561
/* *
562
- * By default, cell content is formatted as text
563
- * Use [RenderedContent.media] or [IMG], [IFRAME] if you need custom HTML inside a cell.
562
+ * Returns a [DataFrameHtmlData] with CSS- and script definitions for DataFrame.
564
563
*
565
564
* To change the formatting of certain cells or columns in the dataframe,
566
565
* use [DataFrame.format].
567
566
*
567
+ * Use [toHtml] if you don't need the [DataFrameHtmlData] to include CSS- and script definitions.
568
+ *
568
569
* The [DataFrameHtmlData] can be saved as an *.html file and displayed in the browser.
569
570
* If you save it as a file and find it in the project tree,
570
571
* the ["Open in browser"](https://www.jetbrains.com/help/idea/editing-html-files.html#ws_html_preview_output_procedure)
571
572
* feature of IntelliJ IDEA will automatically reload the file content when it's updated.
572
- * @return DataFrameHtmlData with table script and css definitions
573
+ *
574
+ * By default, cell content is formatted as text
575
+ * Use [RenderedContent.media] or [IMG], [IFRAME] if you need custom HTML inside a cell.
576
+ *
577
+ * __NOTE:__ In Kotlin Notebook, output [DataFrame] directly, or use [toHtml],
578
+ * as that environment already has CSS- and script definitions for DataFrame.
579
+ * Using [toStandaloneHtml] might produce unexpected results.
580
+ *
581
+ * @param [configuration] The [DisplayConfiguration] to use. Default: [DisplayConfiguration.DEFAULT].
582
+ * @param [cellRenderer] Mostly for internal usage, use [DefaultCellRenderer] if unsure.
583
+ * @param [getFooter] Allows you to specify how to render the footer text beneath the dataframe.
584
+ * Default: `"DataFrame [rows x cols]"`
585
+ * @see toHtml
573
586
*/
574
587
public fun <T > DataFrame<T>.toStandaloneHtml (
575
588
configuration : DisplayConfiguration = DisplayConfiguration .DEFAULT ,
@@ -578,13 +591,23 @@ public fun <T> DataFrame<T>.toStandaloneHtml(
578
591
): DataFrameHtmlData = toHtml(configuration, cellRenderer, getFooter).withTableDefinitions()
579
592
580
593
/* *
581
- * By default, cell content is formatted as text
582
- * Use [RenderedContent.media] or [IMG], [IFRAME] if you need custom HTML inside a cell.
594
+ * Returns a [DataFrameHtmlData] without additional definitions.
595
+ * Can be rendered in Jupyter kernel (Kotlin Notebook) environments or other environments that already have
596
+ * CSS- and script definitions for DataFrame.
583
597
*
584
598
* To change the formatting of certain cells or columns in the dataframe,
585
599
* use [DataFrame.format].
586
600
*
587
- * @return DataFrameHtmlData without additional definitions. Can be rendered in Jupyter kernel environments
601
+ * Use [toStandaloneHtml] if you need the [DataFrameHtmlData] to include CSS- and script definitions.
602
+ *
603
+ * By default, cell content is formatted as text
604
+ * Use [RenderedContent.media] or [IMG], [IFRAME] if you need custom HTML inside a cell.
605
+ *
606
+ * @param [configuration] The [DisplayConfiguration] to use. Default: [DisplayConfiguration.DEFAULT].
607
+ * @param [cellRenderer] Mostly for internal usage, use [DefaultCellRenderer] if unsure.
608
+ * @param [getFooter] Allows you to specify how to render the footer text beneath the dataframe.
609
+ * Default: `"DataFrame [rows x cols]"`
610
+ * @see toStandaloneHtml
588
611
*/
589
612
public fun <T > DataFrame<T>.toHtml (
590
613
configuration : DisplayConfiguration = DisplayConfiguration .DEFAULT ,
0 commit comments