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
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
-
0.4.0 (2022-01-??)
1
+
0.4.0 (2022-01-06)
2
2
==================
3
3
4
4
Changed
5
5
-------
6
-
-We load the `datatables.net` library with an ES import when `require.js` is not available. Now `itables` should also work in Jupyter Lab, VS Code and Colab (#3, #40)
6
+
-Now `itables` also works in Jupyter Lab, Colab, Nteract, VS Code and PyCharm (#3, #4, #26, #40), as we load the `datatables.net` library with an ES import when `require.js` is not available. Many thanks to [François Wouts](https://github.com/fwouts) for his precious help!
7
7
- The `show` function (and `itables.options`) has a new argument `eval_functions`. When set to `True`, the nested strings passed to `datatables.net` that start with `function` are converted to Javascript functions.
8
8
- The HTML code for the datatables.net representation of the table is generated with an HTML template.
<aclass="github-button"href="https://github.com/mwouts/itables"data-icon="octicon-star"data-show-count="true"aria-label="Star mwouts/itables on GitHub">Star</a>
11
11
12
-
Turn pandas DataFrames and Series into interactive [datatables](https://datatables.net) in both your notebooks and their HTML representation with `import itables.interactive`:
12
+
Turn pandas DataFrames and Series into interactive [datatables](https://datatables.net) in your notebooks with `import itables.interactive`:
Activate the interactive mode for all series and dataframes with
41
25
42
26
```python
@@ -63,6 +47,17 @@ x = wb.get_series("SP.POP.TOTL", mrv=1, simplify_index=True)
63
47
show(x)
64
48
```
65
49
50
+
# Supported environments
51
+
52
+
`itables` has been tested in the following editors:
53
+
- Jupyter Notebook
54
+
- Jupyter Lab
55
+
- Jupyter nbconvert (i.e. the tables are still interactive in the HTML export of a notebook)
56
+
- Google Colab
57
+
- VS Code (for both Jupyter Notebooks and Python scripts)
58
+
- PyCharm (for Jupyter Notebooks)
59
+
- Nteract
60
+
66
61
# Advanced usage
67
62
68
63
## Row sorting
@@ -253,11 +248,10 @@ df
253
248
254
249
- DataTables is a plug-in for the jQuery Javascript library. It has a great [documentation](https://datatables.net/manual/), and a large set of [examples](https://datatables.net/examples/index).
255
250
- The R package [DT](https://rstudio.github.io/DT/) uses [datatables.net](https://datatables.net/) as the underlying library for both R notebooks and Shiny applications. In addition to the standard functionalities of the library (display, sort, filtering and row selection), RStudio seems to have implemented cell edition.
256
-
- Marek Cermak has an interesting [tutorial](https://medium.com/@marekermk/guide-to-interactive-pandas-dataframe-representation-485acae02946) on how to use datatables within Jupyter. He also published [jupyter-datatables](https://github.com/CermakM/jupyter-datatables), with a focus on numerical data and distribution plots.
257
251
258
252
## Alternatives
259
253
260
-
ITables uses basic Javascript, and because of this it will only work in Jupyter Notebook, not in JupyterLab. It is not a Jupyter widget, which means that it does not allows you to **edit** the content of the dataframe.
254
+
ITables uses basic Javascript. It is not a Jupyter widget, which means that it does not allows you to **edit** the content of the dataframe.
261
255
262
256
If you are looking for Jupyter widgets, have a look at
263
257
-[QGrid](https://github.com/quantopian/qgrid) by Quantopian
@@ -266,10 +260,6 @@ If you are looking for Jupyter widgets, have a look at
266
260
267
261
If you are looking for a table component that will fit in Dash applications, see [datatable by Dash](https://github.com/plotly/dash-table/).
268
262
269
-
## Contributing
270
-
271
-
I think it would be very helpful to have an identical table component for both Jupyter and [Dash](http://dash.plot.ly/). Please [let us know](https://community.plot.ly/t/why-does-dash-have-its-own-datatable-library/) if you are interested in drafting a new table component based on an existing Javascript library for Dash.
272
-
273
-
Also, if you happen to prefer another Javascript table library (say, [ag-grid](https://www.ag-grid.com/)), and you would like to see it supported in `itables`, please open either an issue or a PR, and let us know what is the minimal code to display a table in Jupyter using your library.
263
+
Please also checkout [D-Tale](https://github.com/man-group/dtale) for exploring your Python DataFrames in the browser, using a local server.
0 commit comments