Skip to content

Commit 175de5f

Browse files
authored
Merge pull request #247 from visualpython/release
Release v2.5.0
2 parents 058fb35 + 9d93210 commit 175de5f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+957
-233
lines changed

build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
#=============================================================================
1212
# Set version and replace it
1313
#=============================================================================
14-
VP_ORG_VER=2.4.8
15-
VP_NEW_VER=2.4.9
14+
VP_ORG_VER=2.4.9
15+
VP_NEW_VER=2.5.0
1616

1717
# update version info
1818
grep -REil "VP_ORG_VER=.+$" colab/build.colab.sh jupyterlab/build.jupyterlab.sh jupyternotebook/build.jupyternotebook.sh | xargs sed -i "s/VP_ORG_VER=.\+$/VP_ORG_VER=${VP_ORG_VER}/g"

colab/build.colab.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
#=============================================================================
1212
# Replace Version
1313
#=============================================================================
14-
VP_ORG_VER=2.4.8
15-
VP_NEW_VER=2.4.9
14+
VP_ORG_VER=2.4.9
15+
VP_NEW_VER=2.5.0
1616

1717
# update version info
1818
# update manifest version with new numbering for new version

colab/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "Visual Python for Colab",
33
"description": "GUI-based Python code generator for Google Colab as an extension",
4-
"version": "2.4.9",
4+
"version": "2.5.0",
55
"manifest_version": 3,
66
"icons": {
77
"48": "icon.png",

jupyterlab/build.jupyterlab.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
#=============================================================================
1212
# Replace Version and Basic Files
1313
#=============================================================================
14-
VP_ORG_VER=2.4.8
15-
VP_NEW_VER=2.4.9
14+
VP_ORG_VER=2.4.9
15+
VP_NEW_VER=2.5.0
1616

1717
# update version info
1818
grep -REil "\"version\": \"${VP_ORG_VER}\"" package.json | xargs sed -i "s/\"version\": \"${VP_ORG_VER//\./\\.}\"/\"version\": \"${VP_NEW_VER}\"/g"

jupyterlab/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jupyterlab/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jupyterlab-visualpython",
3-
"version": "2.4.9",
3+
"version": "2.5.0",
44
"description": "GUI-based Python code generator for Jupyter Lab as an extension",
55
"keywords": [
66
"jupyter",

jupyterlab/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ classifiers = [
3232
"Programming Language :: Python :: 3.9",
3333
"Programming Language :: Python :: 3.10",
3434
]
35-
version = "2.4.9"
35+
version = "2.5.0"
3636

3737
[project.license]
3838
file = "LICENSE"
@@ -92,7 +92,7 @@ file = [
9292
]
9393

9494
[tool.tbump.version]
95-
current = "2.4.9"
95+
current = "2.5.0"
9696
regex = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)((?P<channel>a|b|rc|.dev)(?P<release>\\d+))?"
9797

9898
[tool.tbump.git]

jupyternotebook/build.jupyternotebook.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
#=============================================================================
1212
# Replace Version and Basic Files
1313
#=============================================================================
14-
VP_ORG_VER=2.4.8
15-
VP_NEW_VER=2.4.9
14+
VP_ORG_VER=2.4.9
15+
VP_NEW_VER=2.5.0
1616

1717
# update version info
1818
grep -REil ${VP_ORG_VER//\./\\.} setup.py visualpython/js/com/com_Config.js visualpython/js/com/com_Const.js | xargs sed -i --follow-symlinks "s/${VP_ORG_VER//\./\\.}/${VP_NEW_VER}/g"

jupyternotebook/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
setup(
1212
name = name,
13-
version = '2.4.9',
13+
version = '2.5.0',
1414
packages = find_packages(),
1515
package_data = {"": ["*"], 'visualpython' : ['visualpython.yaml', 'README.md']},
1616
scripts = ['visualpython/bin/visualpy', 'visualpython/bin/visualpy.bat'],

visualpython/css/component/popupComponent.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@
525525
height: 25px;
526526
}
527527
.vp-popup-frame .vp-accordian-box {
528-
padding: 0px 15px 15px 0px;
528+
padding: 0px 15px 0px 0px;
529529
}
530530

531531
/* resizable handler */

visualpython/css/m_apps/frame.css

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@
145145
top: 0;
146146
background-color: var(--vp-background-color);
147147
border-bottom: 1px solid var(--vp-border-gray-color);
148+
border-right: 1px solid var(--vp-border-gray-color);
148149

149150
text-align: right;
150151
text-overflow: ellipsis;
@@ -168,6 +169,12 @@
168169
/* background: var(--vp-light-gray-color); */
169170
/* background: rgba(66, 165, 245, 0.2); */
170171
}
172+
.vp-fe-table-column-isnumeric {
173+
margin-right: 5px;
174+
vertical-align: middle;
175+
height: 15px;
176+
line-height: 15px;
177+
}
171178

172179
/* Row Hover */
173180
.vp-fe-table tbody tr:hover {
@@ -302,6 +309,18 @@
302309
float: right;
303310
display: inline-block;
304311
}
312+
/* to datetime */
313+
.vp-inner-popup-todt-addcol-content {
314+
display: grid;
315+
row-gap: 5px;
316+
max-height: 105px;
317+
}
318+
.vp-inner-popup-todt-addcol-head,
319+
.vp-inner-popup-todt-addcol-item {
320+
display: grid;
321+
grid-template-columns: 160px 160px auto;
322+
column-gap: 5px;
323+
}
305324

306325
/* UDF Editor - CodeMirror */
307326
.vp-fr-subset-box {

visualpython/css/m_visualize/seaborn.css

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,28 @@
4747
height: 100%;
4848
}
4949
.vp-tab-page-box.figure {
50-
height: calc(100% - 30px);
50+
height: 100%;
5151
align-content: baseline;
5252
grid-template-rows: 1fr;
53+
overflow: hidden;
54+
}
55+
.vp-tab-page-box.figure > .vp-tab-page {
56+
overflow: auto;
5357
}
5458
.vp-tab-page-box.plot {
55-
height: calc(100% - 30px);
56-
min-height: 352px;
59+
/* height: calc(100% - 30px);
60+
min-height: 352px; */
5761
align-content: baseline;
62+
height: 100%;
63+
max-height: 100%;
64+
overflow: scroll;
65+
padding: 15px 15px 0px 15px;
5866
}
5967
.vp-chart-plot-box {
6068
height: 100%;
69+
display: grid;
70+
grid-template-rows: 30px calc(100% - 30px);
71+
overflow: auto;
6172
}
6273
.vp-chart-body {
6374
display: grid;
@@ -75,6 +86,14 @@
7586
.vp-chart-left-box,
7687
.vp-chart-right-box {
7788
height: 100%;
89+
display: grid;
90+
grid-template-rows: 30px calc(100% - 30px);
91+
}
92+
.vp-chart-left-box {
93+
overflow: auto;
94+
}
95+
.vp-chart-right-box {
96+
overflow: hidden;
7897
}
7998
.vp-chart-preview-title {
8099
line-height: 30px;
@@ -86,7 +105,8 @@
86105
.vp-chart-preview-box {
87106
min-height: 352px;
88107
width: 100%;
89-
height: calc(100% - 30px);
108+
/* height: calc(100% - 30px); */
109+
height: 100%;
90110
}
91111
.vp-chart-preview-content:empty::after {
92112
content: 'No preview image';

visualpython/data/m_library/pandasLibrary.js

Lines changed: 183 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6880,6 +6880,189 @@ define([
68806880
},
68816881
]
68826882
},
6883+
// ***
6884+
"pd_toParquet": {
6885+
"name": "To Parquet",
6886+
"library": "pandas",
6887+
"description": "DataFrame/Series to Parquet file",
6888+
"code": "${i0}.to_parquet(${path}${etc})",
6889+
"options": [
6890+
{
6891+
"name": "i0",
6892+
"label": "DataFrame",
6893+
"required": true,
6894+
"component": [
6895+
"data_select"
6896+
],
6897+
"var_type": [
6898+
"DataFrame",
6899+
"Series"
6900+
]
6901+
},
6902+
{
6903+
"name": "path",
6904+
"label": "File path/variable",
6905+
"required": true,
6906+
"type": "text"
6907+
}
6908+
]
6909+
},
6910+
"pd_readParquet": {
6911+
"name": "Read Parquet",
6912+
"library": "pandas",
6913+
"description": "Parquet to pandas object",
6914+
"code": "${o0} = pd.read_parquet(${i0}${etc})",
6915+
"options": [
6916+
{
6917+
"name": "i0",
6918+
"label": "File path/object",
6919+
"required": true,
6920+
"type": "text",
6921+
"component": [
6922+
"file"
6923+
]
6924+
},
6925+
{
6926+
"name": "o0",
6927+
"label": "Allocate to",
6928+
"output": true,
6929+
"component": [
6930+
"input"
6931+
],
6932+
"value": "vp_df"
6933+
},
6934+
]
6935+
},
6936+
"pa_readCsv": {
6937+
"name": "Read Csv as pyarrow",
6938+
"library": "pyarrow",
6939+
"description": "Csv to pandas object",
6940+
"code": "${o0} = pa.csv.read_csv(${i0}${etc}).to_pandas()",
6941+
"options": [
6942+
{
6943+
"name": "i0",
6944+
"label": "File path/object",
6945+
"required": true,
6946+
"type": "text",
6947+
"component": [
6948+
"file"
6949+
]
6950+
},
6951+
{
6952+
"name": "o0",
6953+
"label": "Allocate to",
6954+
"output": true,
6955+
"component": [
6956+
"input"
6957+
],
6958+
"value": "vp_df"
6959+
}
6960+
]
6961+
},
6962+
"pa_toCsv": {
6963+
"name": "To Csv as pyarrow",
6964+
"library": "pyarrow",
6965+
"description": "DataFrame/Series to csv file",
6966+
"code": "pa.csv.write_csv(${i0}, ${path})",
6967+
"options": [
6968+
{
6969+
"name": "i0",
6970+
"label": "DataFrame",
6971+
"required": true,
6972+
"component": [
6973+
"data_select"
6974+
],
6975+
"var_type": [
6976+
"DataFrame",
6977+
"Series"
6978+
]
6979+
},
6980+
{
6981+
"name": "path",
6982+
"label": "File path/variable",
6983+
"required": true,
6984+
"type": "text"
6985+
}
6986+
]
6987+
},
6988+
"pa_readJson": {
6989+
"name": "Read Json as pyarrow",
6990+
"library": "pyarrow",
6991+
"description": "Json to pyarrow object",
6992+
"code": "${o0} = pa.json.read_json(${i0}${etc}).to_pandas()",
6993+
"options": [
6994+
{
6995+
"name": "i0",
6996+
"label": "File path/object",
6997+
"required": true,
6998+
"type": "text",
6999+
"component": [
7000+
"file"
7001+
]
7002+
},
7003+
{
7004+
"name": "o0",
7005+
"label": "Allocate to",
7006+
"output": true,
7007+
"component": [
7008+
"input"
7009+
],
7010+
"value": "vp_df"
7011+
}
7012+
]
7013+
},
7014+
"pa_readParquet": {
7015+
"name": "Read Parquet as pyarrow",
7016+
"library": "pyarrow",
7017+
"description": "Parquet to pandas object",
7018+
"code": "${o0} = pa.parquet.read_table(${i0}${etc}).to_pandas()",
7019+
"options": [
7020+
{
7021+
"name": "i0",
7022+
"label": "File path/object",
7023+
"required": true,
7024+
"type": "text",
7025+
"component": [
7026+
"file"
7027+
]
7028+
},
7029+
{
7030+
"name": "o0",
7031+
"label": "Allocate to",
7032+
"output": true,
7033+
"component": [
7034+
"input"
7035+
],
7036+
"value": "vp_df"
7037+
}
7038+
]
7039+
},
7040+
"pa_toParquet": {
7041+
"name": "To Parquet as pyarrow",
7042+
"library": "pyarrow",
7043+
"description": "DataFrame/Series to Parquet file",
7044+
"code": "pa.parquet.write_table(${i0}, ${path})",
7045+
"options": [
7046+
{
7047+
"name": "i0",
7048+
"label": "DataFrame",
7049+
"required": true,
7050+
"component": [
7051+
"data_select"
7052+
],
7053+
"var_type": [
7054+
"DataFrame",
7055+
"Series"
7056+
]
7057+
},
7058+
{
7059+
"name": "path",
7060+
"label": "File path/variable",
7061+
"required": true,
7062+
"type": "text"
7063+
}
7064+
]
7065+
},
68837066
}
68847067

68857068
return {

0 commit comments

Comments
 (0)