itables 2.2.0__tar.gz → 2.2.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (129) hide show
  1. {itables-2.2.0 → itables-2.2.1}/PKG-INFO +1 -1
  2. {itables-2.2.0 → itables-2.2.1}/docs/changelog.md +7 -0
  3. {itables-2.2.0 → itables-2.2.1}/docs/extensions.md +1 -1
  4. {itables-2.2.0 → itables-2.2.1}/src/itables/javascript.py +1 -1
  5. {itables-2.2.0 → itables-2.2.1}/src/itables/shiny.py +1 -2
  6. {itables-2.2.0 → itables-2.2.1}/src/itables/version.py +1 -1
  7. {itables-2.2.0 → itables-2.2.1}/src/itables/widget/__init__.py +1 -1
  8. {itables-2.2.0 → itables-2.2.1}/.github/codecov.yml +0 -0
  9. {itables-2.2.0 → itables-2.2.1}/.github/workflows/comment-pr.yml +0 -0
  10. {itables-2.2.0 → itables-2.2.1}/.github/workflows/continuous-integration.yml +0 -0
  11. {itables-2.2.0 → itables-2.2.1}/.github/workflows/publish-book.yml +0 -0
  12. {itables-2.2.0 → itables-2.2.1}/.github/workflows/publish.yml +0 -0
  13. {itables-2.2.0 → itables-2.2.1}/.gitignore +0 -0
  14. {itables-2.2.0 → itables-2.2.1}/.pre-commit-config.yaml +0 -0
  15. {itables-2.2.0 → itables-2.2.1}/.pylintrc +0 -0
  16. {itables-2.2.0 → itables-2.2.1}/LICENSE +0 -0
  17. {itables-2.2.0 → itables-2.2.1}/README.md +0 -0
  18. {itables-2.2.0 → itables-2.2.1}/binder/labconfig/default_setting_overrides.json +0 -0
  19. {itables-2.2.0 → itables-2.2.1}/binder/postBuild +0 -0
  20. {itables-2.2.0 → itables-2.2.1}/binder/requirements.txt +0 -0
  21. {itables-2.2.0 → itables-2.2.1}/docs/_config.yml +0 -0
  22. {itables-2.2.0 → itables-2.2.1}/docs/_toc.yml +0 -0
  23. {itables-2.2.0 → itables-2.2.1}/docs/advanced_parameters.md +0 -0
  24. {itables-2.2.0 → itables-2.2.1}/docs/contributing.md +0 -0
  25. {itables-2.2.0 → itables-2.2.1}/docs/custom_css.md +0 -0
  26. {itables-2.2.0 → itables-2.2.1}/docs/custom_extensions.md +0 -0
  27. {itables-2.2.0 → itables-2.2.1}/docs/dark_mode.md +0 -0
  28. {itables-2.2.0 → itables-2.2.1}/docs/dash.md +0 -0
  29. {itables-2.2.0 → itables-2.2.1}/docs/developing.md +0 -0
  30. {itables-2.2.0 → itables-2.2.1}/docs/df_example.png +0 -0
  31. {itables-2.2.0 → itables-2.2.1}/docs/downsampling.md +0 -0
  32. {itables-2.2.0 → itables-2.2.1}/docs/formatting.md +0 -0
  33. {itables-2.2.0 → itables-2.2.1}/docs/html_export.md +0 -0
  34. {itables-2.2.0 → itables-2.2.1}/docs/images/code.png +0 -0
  35. {itables-2.2.0 → itables-2.2.1}/docs/images/colab.png +0 -0
  36. {itables-2.2.0 → itables-2.2.1}/docs/images/html.png +0 -0
  37. {itables-2.2.0 → itables-2.2.1}/docs/images/lab.png +0 -0
  38. {itables-2.2.0 → itables-2.2.1}/docs/images/notebook.png +0 -0
  39. {itables-2.2.0 → itables-2.2.1}/docs/images/pycharm.png +0 -0
  40. {itables-2.2.0 → itables-2.2.1}/docs/ipywidgets.md +0 -0
  41. {itables-2.2.0 → itables-2.2.1}/docs/pandas_style.md +0 -0
  42. {itables-2.2.0 → itables-2.2.1}/docs/polars_dataframes.md +0 -0
  43. {itables-2.2.0 → itables-2.2.1}/docs/quarto/quarto_html.qmd +0 -0
  44. {itables-2.2.0 → itables-2.2.1}/docs/quarto/quarto_revealjs.qmd +0 -0
  45. {itables-2.2.0 → itables-2.2.1}/docs/quarto.md +0 -0
  46. {itables-2.2.0 → itables-2.2.1}/docs/quick_start.md +0 -0
  47. {itables-2.2.0 → itables-2.2.1}/docs/references.md +0 -0
  48. {itables-2.2.0 → itables-2.2.1}/docs/sample_dataframes.md +0 -0
  49. {itables-2.2.0 → itables-2.2.1}/docs/select.md +0 -0
  50. {itables-2.2.0 → itables-2.2.1}/docs/shiny.md +0 -0
  51. {itables-2.2.0 → itables-2.2.1}/docs/show_df.png +0 -0
  52. {itables-2.2.0 → itables-2.2.1}/docs/streamlit.md +0 -0
  53. {itables-2.2.0 → itables-2.2.1}/docs/supported_editors.md +0 -0
  54. {itables-2.2.0 → itables-2.2.1}/docs/troubleshooting.md +0 -0
  55. {itables-2.2.0 → itables-2.2.1}/environment.yml +0 -0
  56. {itables-2.2.0 → itables-2.2.1}/packages/dt_for_itables/CHANGELOG.md +0 -0
  57. {itables-2.2.0 → itables-2.2.1}/packages/dt_for_itables/LICENSE +0 -0
  58. {itables-2.2.0 → itables-2.2.1}/packages/dt_for_itables/README.md +0 -0
  59. {itables-2.2.0 → itables-2.2.1}/packages/dt_for_itables/package-lock.json +0 -0
  60. {itables-2.2.0 → itables-2.2.1}/packages/dt_for_itables/package.json +0 -0
  61. {itables-2.2.0 → itables-2.2.1}/packages/dt_for_itables/src/index.css +0 -0
  62. {itables-2.2.0 → itables-2.2.1}/packages/dt_for_itables/src/index.d.ts +0 -0
  63. {itables-2.2.0 → itables-2.2.1}/packages/dt_for_itables/src/index.js +0 -0
  64. {itables-2.2.0 → itables-2.2.1}/packages/itables_anywidget/README.md +0 -0
  65. {itables-2.2.0 → itables-2.2.1}/packages/itables_anywidget/js/widget.css +0 -0
  66. {itables-2.2.0 → itables-2.2.1}/packages/itables_anywidget/js/widget.ts +0 -0
  67. {itables-2.2.0 → itables-2.2.1}/packages/itables_anywidget/package-lock.json +0 -0
  68. {itables-2.2.0 → itables-2.2.1}/packages/itables_anywidget/package.json +0 -0
  69. {itables-2.2.0 → itables-2.2.1}/packages/itables_anywidget/tsconfig.json +0 -0
  70. {itables-2.2.0 → itables-2.2.1}/packages/itables_for_streamlit/README.md +0 -0
  71. {itables-2.2.0 → itables-2.2.1}/packages/itables_for_streamlit/package-lock.json +0 -0
  72. {itables-2.2.0 → itables-2.2.1}/packages/itables_for_streamlit/package.json +0 -0
  73. {itables-2.2.0 → itables-2.2.1}/packages/itables_for_streamlit/public/index.html +0 -0
  74. {itables-2.2.0 → itables-2.2.1}/packages/itables_for_streamlit/src/index.tsx +0 -0
  75. {itables-2.2.0 → itables-2.2.1}/packages/itables_for_streamlit/tsconfig.json +0 -0
  76. {itables-2.2.0 → itables-2.2.1}/packages/package-lock.json +0 -0
  77. {itables-2.2.0 → itables-2.2.1}/packages/package.json +0 -0
  78. {itables-2.2.0 → itables-2.2.1}/pyproject.toml +0 -0
  79. {itables-2.2.0 → itables-2.2.1}/src/itables/__init__.py +0 -0
  80. {itables-2.2.0 → itables-2.2.1}/src/itables/datatables_format.py +0 -0
  81. {itables-2.2.0 → itables-2.2.1}/src/itables/downsample.py +0 -0
  82. {itables-2.2.0 → itables-2.2.1}/src/itables/html/column_filters/initComplete.js +0 -0
  83. {itables-2.2.0 → itables-2.2.1}/src/itables/html/column_filters/pre_dt_code.js +0 -0
  84. {itables-2.2.0 → itables-2.2.1}/src/itables/html/datatables_template.html +0 -0
  85. {itables-2.2.0 → itables-2.2.1}/src/itables/html/dt_bundle.css +0 -0
  86. {itables-2.2.0 → itables-2.2.1}/src/itables/html/dt_bundle.js +0 -0
  87. {itables-2.2.0 → itables-2.2.1}/src/itables/html/init_datatables.html +0 -0
  88. {itables-2.2.0 → itables-2.2.1}/src/itables/interactive.py +0 -0
  89. {itables-2.2.0 → itables-2.2.1}/src/itables/itables_for_streamlit/asset-manifest.json +0 -0
  90. {itables-2.2.0 → itables-2.2.1}/src/itables/itables_for_streamlit/index.html +0 -0
  91. {itables-2.2.0 → itables-2.2.1}/src/itables/itables_for_streamlit/static/css/main.b5025928.css +0 -0
  92. {itables-2.2.0 → itables-2.2.1}/src/itables/itables_for_streamlit/static/css/main.b5025928.css.map +0 -0
  93. {itables-2.2.0 → itables-2.2.1}/src/itables/itables_for_streamlit/static/js/main.f651d116.js +0 -0
  94. {itables-2.2.0 → itables-2.2.1}/src/itables/itables_for_streamlit/static/js/main.f651d116.js.LICENSE.txt +0 -0
  95. {itables-2.2.0 → itables-2.2.1}/src/itables/itables_for_streamlit/static/js/main.f651d116.js.map +0 -0
  96. {itables-2.2.0 → itables-2.2.1}/src/itables/logo/loading.svg +0 -0
  97. {itables-2.2.0 → itables-2.2.1}/src/itables/logo/logo.svg +0 -0
  98. {itables-2.2.0 → itables-2.2.1}/src/itables/logo/text.svg +0 -0
  99. {itables-2.2.0 → itables-2.2.1}/src/itables/logo/wide.svg +0 -0
  100. {itables-2.2.0 → itables-2.2.1}/src/itables/logo/with_text.svg +0 -0
  101. {itables-2.2.0 → itables-2.2.1}/src/itables/options.py +0 -0
  102. {itables-2.2.0 → itables-2.2.1}/src/itables/sample_dfs.py +0 -0
  103. {itables-2.2.0 → itables-2.2.1}/src/itables/samples/countries.csv +0 -0
  104. {itables-2.2.0 → itables-2.2.1}/src/itables/samples/indicators.csv +0 -0
  105. {itables-2.2.0 → itables-2.2.1}/src/itables/samples/population.csv +0 -0
  106. {itables-2.2.0 → itables-2.2.1}/src/itables/streamlit.py +0 -0
  107. {itables-2.2.0 → itables-2.2.1}/src/itables/utils.py +0 -0
  108. {itables-2.2.0 → itables-2.2.1}/src/itables/widget/static/widget.css +0 -0
  109. {itables-2.2.0 → itables-2.2.1}/src/itables/widget/static/widget.js +0 -0
  110. {itables-2.2.0 → itables-2.2.1}/tests/__init__.py +0 -0
  111. {itables-2.2.0 → itables-2.2.1}/tests/conftest.py +0 -0
  112. {itables-2.2.0 → itables-2.2.1}/tests/sample_python_apps/itables_in_a_shiny_app.py +0 -0
  113. {itables-2.2.0 → itables-2.2.1}/tests/sample_python_apps/itables_in_a_shiny_app_with_tabs.py +0 -0
  114. {itables-2.2.0 → itables-2.2.1}/tests/test_changelog.py +0 -0
  115. {itables-2.2.0 → itables-2.2.1}/tests/test_connected_notebook_is_small.py +0 -0
  116. {itables-2.2.0 → itables-2.2.1}/tests/test_datatables_format.py +0 -0
  117. {itables-2.2.0 → itables-2.2.1}/tests/test_documentation_notebooks_run.py +0 -0
  118. {itables-2.2.0 → itables-2.2.1}/tests/test_downsample.py +0 -0
  119. {itables-2.2.0 → itables-2.2.1}/tests/test_extension_arguments.py +0 -0
  120. {itables-2.2.0 → itables-2.2.1}/tests/test_html_in_table_header.py +0 -0
  121. {itables-2.2.0 → itables-2.2.1}/tests/test_init.py +0 -0
  122. {itables-2.2.0 → itables-2.2.1}/tests/test_javascript.py +0 -0
  123. {itables-2.2.0 → itables-2.2.1}/tests/test_json_dumps.py +0 -0
  124. {itables-2.2.0 → itables-2.2.1}/tests/test_notebook.ipynb +0 -0
  125. {itables-2.2.0 → itables-2.2.1}/tests/test_pandas_style.py +0 -0
  126. {itables-2.2.0 → itables-2.2.1}/tests/test_polars.py +0 -0
  127. {itables-2.2.0 → itables-2.2.1}/tests/test_sample_dfs.py +0 -0
  128. {itables-2.2.0 → itables-2.2.1}/tests/test_sample_python_apps.py +0 -0
  129. {itables-2.2.0 → itables-2.2.1}/tests/test_update_samples.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: itables
3
- Version: 2.2.0
3
+ Version: 2.2.1
4
4
  Summary: Pandas and Polar DataFrames as interactive DataTables
5
5
  Project-URL: Homepage, https://mwouts.github.io/itables/
6
6
  Project-URL: Documentation, https://mwouts.github.io/itables
@@ -1,6 +1,13 @@
1
1
  ITables ChangeLog
2
2
  =================
3
3
 
4
+ 2.2.1 (2024-09-22)
5
+ ------------------
6
+
7
+ **Fixed**
8
+ - We fixed an issue with the Streamlit component when `selected_rows` was not set.
9
+
10
+
4
11
  2.2.0 (2024-09-22)
5
12
  ------------------
6
13
 
@@ -190,7 +190,7 @@ argument is required (otherwise the search panes are too wide).
190
190
  show(
191
191
  df,
192
192
  layout={"top1": "searchPanes"},
193
- searchPanes={"layout": "columns-3", "cascadePanes": True},
193
+ searchPanes={"layout": "columns-3", "cascadePanes": True, "columns": [1, 6, 7]},
194
194
  )
195
195
  ```
196
196
 
@@ -598,7 +598,7 @@ def warn_if_selected_rows_are_not_visible(
598
598
  selected_rows, full_row_count, data_row_count, warn_on_selected_rows_not_rendered
599
599
  ):
600
600
  if selected_rows is None:
601
- return None
601
+ return []
602
602
 
603
603
  if not all(isinstance(i, int) for i in selected_rows):
604
604
  raise TypeError("Selected rows must be integers")
@@ -29,7 +29,7 @@ def init_itables(
29
29
  return html
30
30
 
31
31
 
32
- def DT(df, caption=None, table_id=None, selected_rows=None, **kwargs):
32
+ def DT(df, caption=None, table_id=None, **kwargs):
33
33
  """This is a version of 'to_html_datatable' that works in Shiny applications."""
34
34
 
35
35
  html = to_html_datatable(
@@ -37,7 +37,6 @@ def DT(df, caption=None, table_id=None, selected_rows=None, **kwargs):
37
37
  caption=caption,
38
38
  table_id=table_id,
39
39
  connected=_CONNECTED,
40
- selected_rows=selected_rows or [],
41
40
  **kwargs,
42
41
  )
43
42
 
@@ -1,3 +1,3 @@
1
1
  """ITables' version number"""
2
2
 
3
- __version__ = "2.2.0"
3
+ __version__ = "2.2.1"
@@ -41,7 +41,7 @@ class ITable(anywidget.AnyWidget):
41
41
  self.caption = other_args.pop("caption") or ""
42
42
  self.classes = other_args.pop("classes")
43
43
  self.style = other_args.pop("style")
44
- self.selected_rows = other_args.pop("selected_rows") or []
44
+ self.selected_rows = other_args.pop("selected_rows")
45
45
 
46
46
  self._data = dt_args.pop("data")
47
47
  self._columns = dt_args.pop("columns")
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes