jupyterlab_tabular_data_viewer_extension 1.1.20 → 1.1.36

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.
package/README.md CHANGED
@@ -10,6 +10,10 @@ View and browse Parquet, Excel, CSV, and TSV files directly in JupyterLab. Doubl
10
10
 
11
11
  ![Parquet Viewer](.resources/screenshot.png)
12
12
 
13
+ **Opening files:** Right-click any supported file and select "Tabular Data Viewer" from the "Open With" menu, or simply double-click to open with the default viewer.
14
+
15
+ ![Open With Menu](.resources/screenshot-menu.png)
16
+
13
17
  ## Features
14
18
 
15
19
  **Supported File Formats:**
@@ -58,10 +62,12 @@ pip uninstall jupyterlab_tabular_data_viewer_extension
58
62
  Configure file type support through JupyterLab Settings:
59
63
 
60
64
  1. Open **Settings → Settings Editor**
61
- 2. Search for "Parquet Viewer Extension"
65
+ 2. Search for "Tabular Data Viewer Extension"
62
66
  3. Configure options:
63
67
  - **Enable Parquet files** - Default: enabled
64
- - **Enable Excel files** - Default: disabled (enable to view .xlsx files)
68
+ - **Enable Excel files** - Default: enabled
69
+ - **Enable CSV files** - Default: enabled
70
+ - **Enable TSV files** - Default: enabled
65
71
 
66
72
  When a file type is disabled, files open with JupyterLab's default handler instead.
67
73
 
package/lib/index.js CHANGED
@@ -34,9 +34,7 @@ const plugin = {
34
34
  autoStart: true,
35
35
  requires: [ISettingRegistry],
36
36
  activate: async (app, settingRegistry) => {
37
- // console.log(
38
- // 'JupyterLab extension jupyterlab_tabular_data_viewer_extension is activated!'
39
- // );
37
+ console.log('JupyterLab extension jupyterlab_tabular_data_viewer_extension is activated!');
40
38
  const { docRegistry, commands, contextMenu } = app;
41
39
  // Track last right-clicked row for context menu
42
40
  let lastContextMenuRow = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jupyterlab_tabular_data_viewer_extension",
3
- "version": "1.1.20",
3
+ "version": "1.1.36",
4
4
  "description": "Jupyterlab extension to browse tabular data files (Parquet, Excel, CSV, TSV) with filtering and sorting capabilities",
5
5
  "keywords": [
6
6
  "jupyter",
package/src/index.ts CHANGED
@@ -73,9 +73,9 @@ const plugin: JupyterFrontEndPlugin<void> = {
73
73
  autoStart: true,
74
74
  requires: [ISettingRegistry],
75
75
  activate: async (app: JupyterFrontEnd, settingRegistry: ISettingRegistry) => {
76
- // console.log(
77
- // 'JupyterLab extension jupyterlab_tabular_data_viewer_extension is activated!'
78
- // );
76
+ console.log(
77
+ 'JupyterLab extension jupyterlab_tabular_data_viewer_extension is activated!'
78
+ );
79
79
 
80
80
  const { docRegistry, commands, contextMenu } = app;
81
81
 
package/style/base.css CHANGED
@@ -19,7 +19,8 @@
19
19
  }
20
20
 
21
21
  .jp-TabularDataViewer-table {
22
- border-collapse: collapse;
22
+ border-collapse: separate;
23
+ border-spacing: 0;
23
24
  table-layout: fixed;
24
25
  font-family: var(--jp-code-font-family);
25
26
  font-size: var(--jp-code-font-size);
@@ -44,8 +45,10 @@
44
45
  .jp-TabularDataViewer-filterCell {
45
46
  padding: 4px 8px;
46
47
  border-bottom: 1px solid var(--jp-border-color1);
47
- border-right: 1px solid var(--jp-border-color2);
48
+ border-right: 1px solid var(--jp-border-color0);
48
49
  box-sizing: border-box;
50
+ background-color: var(--jp-layout-color2);
51
+ position: relative;
49
52
  }
50
53
 
51
54
  .jp-TabularDataViewer-filterCell:last-child {
@@ -57,7 +60,7 @@
57
60
  padding: 4px 6px;
58
61
  border: 1px solid var(--jp-border-color2);
59
62
  border-radius: 2px;
60
- background-color: var(--jp-input-background);
63
+ background-color: var(--jp-layout-color0);
61
64
  color: var(--jp-ui-font-color1);
62
65
  font-family: var(--jp-ui-font-family);
63
66
  font-size: var(--jp-ui-font-size1);
@@ -85,7 +88,7 @@
85
88
  text-align: left;
86
89
  font-weight: 600;
87
90
  border-bottom: 2px solid var(--jp-border-color1);
88
- border-right: 1px solid var(--jp-border-color2);
91
+ border-right: 1px solid var(--jp-border-color0);
89
92
  background-color: var(--jp-layout-color2);
90
93
  position: relative;
91
94
  min-width: 120px;
@@ -156,6 +159,7 @@
156
159
  .jp-TabularDataViewer-cell {
157
160
  padding: 6px 12px;
158
161
  border-right: 1px solid var(--jp-border-color2);
162
+ border-bottom: 1px solid var(--jp-border-color2);
159
163
  color: var(--jp-ui-font-color1);
160
164
  word-break: break-word;
161
165
  max-width: 400px;
@@ -245,7 +249,7 @@
245
249
  }
246
250
 
247
251
  [data-jp-theme-light='false'] .jp-TabularDataViewer-filterInput {
248
- background-color: var(--jp-input-background);
252
+ background-color: var(--jp-layout-color0);
249
253
  color: var(--jp-ui-font-color0);
250
254
  }
251
255