jupyter-duckdb 1.2.101__py3-none-any.whl → 1.2.102__py3-none-any.whl

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.
@@ -0,0 +1,3 @@
1
+ .duckdb-query-result:not(.default) {
2
+ display: none
3
+ }
@@ -0,0 +1,55 @@
1
+ function animate_ra(divId, rootNodeId) {
2
+ /*
3
+ const {createApp, onMounted, ref} = Vue
4
+
5
+ createApp({
6
+ setup() {
7
+ onMounted(() => {
8
+ const titles = document.querySelectorAll(`#${divId} title`)
9
+ const gs = [...titles]
10
+ .map(t => [t.textContent, t.parentElement])
11
+ .filter(g => g[1].id && g[1].id.startsWith('node'))
12
+
13
+ console.log(gs)
14
+ })
15
+ }
16
+ }).mount(`#${divId}`)
17
+ */
18
+
19
+ const titles = [...document.querySelectorAll(`#${divId} title`)]
20
+ .filter(p => p.parentElement.id && p.parentElement.id.startsWith('node'))
21
+
22
+ // update cursor
23
+ titles.forEach(t => t.parentElement.style.cursor = 'pointer')
24
+ titles.forEach(t => t.parentElement.style.userSelect = 'none')
25
+
26
+ // update all polygons to handle click events
27
+ titles.forEach(t => {
28
+ t.parentElement.querySelectorAll('polygon')
29
+ .forEach(p => p.style.pointerEvents = 'all')
30
+ })
31
+
32
+ // add click listener for each node
33
+ titles.forEach(t => {
34
+ t.parentElement.addEventListener('click', () => {
35
+ titles.forEach(a => {
36
+ document.querySelectorAll(`.${a.textContent}`)
37
+ .forEach(e => e.style.display = a === t ? 'block' : 'none')
38
+ a.parentElement.querySelectorAll('polygon')
39
+ .forEach(e => e.setAttribute('fill', a === t ? 'rgb(200, 240, 255)' : 'none'))
40
+ })
41
+ })
42
+ })
43
+
44
+ // call listener for root node
45
+ window.setTimeout(() => {
46
+ titles.forEach(t => {
47
+ if (t.textContent === rootNodeId)
48
+ t.dispatchEvent(new MouseEvent('click', {
49
+ bubbles: true,
50
+ cancelable: true,
51
+ view: window
52
+ }))
53
+ })
54
+ }, 100)
55
+ }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: jupyter-duckdb
3
- Version: 1.2.101
3
+ Version: 1.2.102
4
4
  Summary: a basic wrapper kernel for DuckDB
5
5
  Home-page: https://github.com/erictroebs/jupyter-duckdb
6
6
  Author: Eric Tröbs
@@ -1,7 +1,7 @@
1
1
  duckdb_kernel/__init__.py,sha256=6auU6zeJrsA4fxPSr2PYamS8fG-SMXTn5YQFXF2cseo,33
2
2
  duckdb_kernel/__main__.py,sha256=Z3GwHEBWoQjNm2Y84ijnbA0Lk66L7nsFREuqhZ_ptk0,165
3
3
  duckdb_kernel/kernel.json,sha256=_7E8Ci2FSdCvnzCjsOaue8QE8AvpS5JLQuxORO5IGtA,127
4
- duckdb_kernel/kernel.py,sha256=qURs-uIdQgnqZKSP0Z2Q8Eo_rrdMMdTcHdpUsURxXN8,26470
4
+ duckdb_kernel/kernel.py,sha256=DIixbtvXldvVlmf_6jgUWWC_Mu5UY82oebHaJCrH90Y,27236
5
5
  duckdb_kernel/db/Column.py,sha256=GM5P6sFdlYK92hiKln5-6038gIDOTxh1AYbR4kiga_w,559
6
6
  duckdb_kernel/db/Connection.py,sha256=5pH-CwGh-r9Q2QwJKGSxvoINBU-sqmvZyG4Q1digfeE,599
7
7
  duckdb_kernel/db/Constraint.py,sha256=1YgUHk7s8mHCVedbcuJKyXDykj7_ybbwT3Dk9p2VMis,287
@@ -85,11 +85,15 @@ duckdb_kernel/util/TestError.py,sha256=iwlGHr9j6pFDa2cGxqGyvJ-exrFUtPJjVm_OhHi4n
85
85
  duckdb_kernel/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
86
86
  duckdb_kernel/util/formatting.py,sha256=cbt0CtERnqtzd97mLrOjeJpqM2Lo6pW96BjAYqrOTD8,793
87
87
  duckdb_kernel/visualization/Drawer.py,sha256=D0LkiGMvuJ2v6cQSg_axLTGaM4VXAJEQJAynvedQ3So,296
88
- duckdb_kernel/visualization/Plotly.py,sha256=5MDOHJsWiIYnQt4ZtKqQ69KcHetbO3N9PzJ8ZZW5CIo,3408
89
- duckdb_kernel/visualization/RATreeDrawer.py,sha256=j-Vy1zpYMzwZ3CsphyfPW-J7ou9a9tM6aXXgAlQTgDI,2128
88
+ duckdb_kernel/visualization/Plotly.py,sha256=eWW7mFJ18rbKf-CsvzaLx0wWsyPep7lByVeuUaf4-Ho,3203
89
+ duckdb_kernel/visualization/RATreeDrawer.py,sha256=5ayWknm6PhEqOZ3Pfba8gZD_7pXzCjyTuUOtdKA8Y-o,2947
90
90
  duckdb_kernel/visualization/SchemaDrawer.py,sha256=9K-TUUmyeGdMYMTFQJ7evIU3p8p2KyMKeizUc7-y8co,3015
91
91
  duckdb_kernel/visualization/__init__.py,sha256=37a-YUXb7Hr4NJCMatpjtmwP2FOPME-5wUWpszrYEMk,100
92
- jupyter_duckdb-1.2.101.dist-info/METADATA,sha256=xNQwQu4VWyfFuHjDPDENmpxnHuO2eVzN0_c9ZklAe1Q,9115
93
- jupyter_duckdb-1.2.101.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
94
- jupyter_duckdb-1.2.101.dist-info/top_level.txt,sha256=KvRRPMnmkQNuhyBsXoPmwyt26LRDp0O-0HN6u0Dm5jA,14
95
- jupyter_duckdb-1.2.101.dist-info/RECORD,,
92
+ duckdb_kernel/visualization/lib/__init__.py,sha256=LYi0YPtn5fXOejbLIqbt_3KzP-XrwpN8l0JzoAI_ngg,1044
93
+ duckdb_kernel/visualization/lib/plotly-3.0.1.min.js,sha256=oy6Be7Eh6eiQFs5M7oXuPxxm9qbJXEtTpfSI93dW16Q,4653932
94
+ duckdb_kernel/visualization/lib/ra.css,sha256=foz1v69EQ117BDduB9QyHH978PbRs2TG1kBS4VGqZbI,57
95
+ duckdb_kernel/visualization/lib/ra.js,sha256=VzMRn55ztcd5Kfu2B6gdRPARpi8n-fvs8oNFnfp55Ec,1845
96
+ jupyter_duckdb-1.2.102.dist-info/METADATA,sha256=020EZdonW3kvcFer9t5LsfTlgDI5s1WhgJyvzgAYJjk,9115
97
+ jupyter_duckdb-1.2.102.dist-info/WHEEL,sha256=beeZ86-EfXScwlR_HKu4SllMC9wUEj_8Z_4FJ3egI2w,91
98
+ jupyter_duckdb-1.2.102.dist-info/top_level.txt,sha256=KvRRPMnmkQNuhyBsXoPmwyt26LRDp0O-0HN6u0Dm5jA,14
99
+ jupyter_duckdb-1.2.102.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (76.0.0)
2
+ Generator: setuptools (76.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5