Hello community,
here is the log from the commit of package python-jupyter-datatables for
openSUSE:Factory checked in at 2019-06-13 23:04:09
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-jupyter-datatables (Old)
and /work/SRC/openSUSE:Factory/.python-jupyter-datatables.new.4811 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-jupyter-datatables"
Thu Jun 13 23:04:09 2019 rev:2 rq:709563 version:0.2.2
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-jupyter-datatables/python-jupyter-datatables.changes
2019-05-22 11:10:42.506596925 +0200
+++
/work/SRC/openSUSE:Factory/.python-jupyter-datatables.new.4811/python-jupyter-datatables.changes
2019-06-13 23:04:12.507348467 +0200
@@ -1,0 +2,7 @@
+Wed Jun 12 20:16:34 UTC 2019 - Todd R <[email protected]>
+
+- Update to 0.2.2
+ * Handle focus on search field correctly
+ * Sort the data before plotting
+
+-------------------------------------------------------------------
Old:
----
jupyter-datatables-0.2.1.tar.gz
New:
----
jupyter-datatables-0.2.2.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-jupyter-datatables.spec ++++++
--- /var/tmp/diff_new_pack.qfzeZn/_old 2019-06-13 23:04:13.379347710 +0200
+++ /var/tmp/diff_new_pack.qfzeZn/_new 2019-06-13 23:04:13.379347710 +0200
@@ -18,7 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-jupyter-datatables
-Version: 0.2.1
+Version: 0.2.2
Release: 0
License: MIT
Summary: Jupyter Notebook extension to levarage pandas DataFrames
++++++ jupyter-datatables-0.2.1.tar.gz -> jupyter-datatables-0.2.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jupyter-datatables-0.2.1/PKG-INFO
new/jupyter-datatables-0.2.2/PKG-INFO
--- old/jupyter-datatables-0.2.1/PKG-INFO 2019-05-03 13:16:12.000000000
+0200
+++ new/jupyter-datatables-0.2.2/PKG-INFO 2019-05-14 10:02:13.000000000
+0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: jupyter-datatables
-Version: 0.2.1
+Version: 0.2.2
Summary: Jupyter Notebook extension to levarage pandas DataFrames by
integrating DataTables JS.
Home-page: https://github.com/CermakM/jupyter-datatables
Author: Marek Cermak
@@ -44,7 +44,7 @@
import numpy as np
import pandas as pd
- from jupyter-datatables import init_datatables_mode
+ from jupyter_datatables import init_datatables_mode
init_datatables_mode()
```
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jupyter-datatables-0.2.1/README.md
new/jupyter-datatables-0.2.2/README.md
--- old/jupyter-datatables-0.2.1/README.md 2019-04-25 00:30:27.000000000
+0200
+++ new/jupyter-datatables-0.2.2/README.md 2019-05-08 09:20:39.000000000
+0200
@@ -36,7 +36,7 @@
import numpy as np
import pandas as pd
-from jupyter-datatables import init_datatables_mode
+from jupyter_datatables import init_datatables_mode
init_datatables_mode()
```
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/jupyter-datatables-0.2.1/jupyter_datatables/__about__.py
new/jupyter-datatables-0.2.2/jupyter_datatables/__about__.py
--- old/jupyter-datatables-0.2.1/jupyter_datatables/__about__.py
2019-05-03 13:03:50.000000000 +0200
+++ new/jupyter-datatables-0.2.2/jupyter_datatables/__about__.py
2019-05-14 09:57:38.000000000 +0200
@@ -9,7 +9,7 @@
__summary__ = "Jupyter Notebook extension to levarage pandas DataFrames by
integrating DataTables JS."
__uri__ = "https://github.com/CermakM/jupyter-datatables"
-__version__ = "0.2.1"
+__version__ = "0.2.2"
__author__ = "Marek Cermak"
__email__ = "[email protected]"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/jupyter-datatables-0.2.1/jupyter_datatables/__init__.py
new/jupyter-datatables-0.2.2/jupyter_datatables/__init__.py
--- old/jupyter-datatables-0.2.1/jupyter_datatables/__init__.py 2019-04-25
00:29:31.000000000 +0200
+++ new/jupyter-datatables-0.2.2/jupyter_datatables/__init__.py 2019-05-08
09:20:39.000000000 +0200
@@ -1,4 +1,4 @@
-# jupyter-tools
+# jupyter-datatables
# Copyright 2019 Marek Cermak <[email protected]>
#
# MIT License
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/jupyter-datatables-0.2.1/jupyter_datatables/config.py
new/jupyter-datatables-0.2.2/jupyter_datatables/config.py
--- old/jupyter-datatables-0.2.1/jupyter_datatables/config.py 2019-04-25
00:00:15.000000000 +0200
+++ new/jupyter-datatables-0.2.2/jupyter_datatables/config.py 2019-05-08
09:20:39.000000000 +0200
@@ -1,4 +1,4 @@
-# jupyter-tools
+# jupyter-datatables
# Copyright 2019 Marek Cermak <[email protected]>
"""Default configuration for Jupyter datatables tool."""
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/jupyter-datatables-0.2.1/jupyter_datatables/js/jupyter-datatables.js
new/jupyter-datatables-0.2.2/jupyter_datatables/js/jupyter-datatables.js
--- old/jupyter-datatables-0.2.1/jupyter_datatables/js/jupyter-datatables.js
2019-04-24 21:57:40.000000000 +0200
+++ new/jupyter-datatables-0.2.2/jupyter_datatables/js/jupyter-datatables.js
2019-05-14 09:50:53.000000000 +0200
@@ -233,6 +233,8 @@
let createDataPreview = function (data, dtype) {
let dataPreview = null
+ data = data.sort()
+
const grouped = d3.nest()
.key((d) => d)
.rollup((d) => d.length)
@@ -339,6 +341,8 @@
$(settings.nTHead).append(dataPreviewRow)
})
+ // if there is a search bar, disable the keyboard manager on focus
+
resolve(settings)
}
})
@@ -376,11 +380,46 @@
}
/**
+ * Initialize events
+ */
+ let initDataTableEvents = function () {
+ // Focus search field event
+ $(document).on('focus', '.dataTables_filter input', function (e) {
+ setTimeout(() => {
+ let cell = Jupyter.notebook.get_selected_cell()
+ let oArea = cell.output_area
+
+ if (e.type === 'focusin') {
+ oArea.keyboard_manager.disable()
+ } else { oArea.keyboard_manager.enable() }
+ }, 50) // set timeout to let Jupyter select the cell
+ })
+
+ // Keyup search field event
+ $(document).on('keyup', '.dataTables_filter input', function (e) {
+ if ($(this).is(':focus') && e.key === 'Escape') {
+ let cell = Jupyter.notebook.get_selected_cell()
+ let oArea = cell.output_area
+
+ $(this).blur() // focus out of the search element
+
+ oArea.keyboard_manager.enable()
+
+ return events.trigger('select.Cell', { 'cell': cell })
+ }
+
+ return true
+ })
+ }
+
+ /**
* Create DataTable from raw string and append it to an element
*/
return appendDataTable = async function (html, options, buttons, element) {
const table = await appendTable(html, element)
+ initDataTableEvents()
+
return createDataTable(table, options, buttons)
}
})
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/jupyter-datatables-0.2.1/jupyter_datatables.egg-info/PKG-INFO
new/jupyter-datatables-0.2.2/jupyter_datatables.egg-info/PKG-INFO
--- old/jupyter-datatables-0.2.1/jupyter_datatables.egg-info/PKG-INFO
2019-05-03 13:16:11.000000000 +0200
+++ new/jupyter-datatables-0.2.2/jupyter_datatables.egg-info/PKG-INFO
2019-05-14 10:02:13.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: jupyter-datatables
-Version: 0.2.1
+Version: 0.2.2
Summary: Jupyter Notebook extension to levarage pandas DataFrames by
integrating DataTables JS.
Home-page: https://github.com/CermakM/jupyter-datatables
Author: Marek Cermak
@@ -44,7 +44,7 @@
import numpy as np
import pandas as pd
- from jupyter-datatables import init_datatables_mode
+ from jupyter_datatables import init_datatables_mode
init_datatables_mode()
```