Skip to content

Commit 69e1ff5

Browse files
Automated commit of generated code
1 parent f397660 commit 69e1ff5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

core/generated-sources/src/main/kotlin/org/jetbrains/kotlinx/dataframe/jupyter/DisableRowsLimitWrapper.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import org.jetbrains.kotlinx.dataframe.annotations.RequiredByIntellijPlugin
55

66
/**
77
* Allows for disabling the rows limit when generating a DISPLAY output in Jupyter.
8+
* Used in code that Kotlin Notebook sends to Jupyter Kernel / KotlinNotebookPluginUtils
9+
* @param [addHtml] needed to avoid sending HTML in these internal requests, because they won't be displayed anyway, only JSON part of these payloads is used to update "live" state of the widget
810
*/
911
@RequiredByIntellijPlugin
10-
public data class DisableRowsLimitWrapper(public val value: AnyFrame)
12+
public data class DisableRowsLimitWrapper(public val value: AnyFrame, public val addHtml: Boolean = true)

core/generated-sources/src/main/kotlin/org/jetbrains/kotlinx/dataframe/jupyter/KotlinNotebookPluginUtils.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public object KotlinNotebookPluginUtils {
6363
* It's used for example for dynamic pagination in Kotlin Notebook Plugin.
6464
*/
6565
public fun getRowsSubsetForRendering(df: AnyFrame, startIdx: Int, endIdx: Int): DisableRowsLimitWrapper =
66-
DisableRowsLimitWrapper(df[startIdx..<endIdx])
66+
DisableRowsLimitWrapper(df[startIdx..<endIdx], addHtml = false)
6767

6868
/**
6969
* Sorts a dataframe-like object by multiple columns.

0 commit comments

Comments
 (0)