Skip to content

Commit

Permalink
upgrades via recent cookiecutter & npm audit fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-rind committed Sep 9, 2023
1 parent b73b30f commit b27a477
Show file tree
Hide file tree
Showing 9 changed files with 938 additions and 6,199 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Install Python
uses: actions/setup-python@v2
with:
python-version: "3.7"
python-version: "3.8"
architecture: "x64"

- name: Setup pip cache
Expand Down
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ or
```bash
python -m venv venv
source venv/Scripts/activate
python -m pip install -U pip setuptools
pip install nodejs jupyterlab jupyter-packaging
```

Expand Down Expand Up @@ -100,6 +101,16 @@ After a change wait for the build to finish and then refresh your browser and th
#### Python:
If you make a change to the python code then you will need to restart the notebook kernel to have it take effect.

## Updating the version

To update the version, install tbump and use it to bump the version.
By default it will also create a tag.

```bash
pip install tbump
tbump <new-version>
```

## Citation

Kajetan Enge, Alexander Rind, Michael Iber, Robert Höldrich, and Wolfgang Aigner.
Expand Down
5 changes: 3 additions & 2 deletions dev-logbook.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,9 @@ Events
Deploy to pypi (cp. <https://towardsdatascience.com/how-to-build-your-first-python-package-6a00b02635c9>):

```
pip install twine
python setup.py sdist bdist_wheel
pip install twine hatch
# python setup.py sdist bdist_wheel
hatch build
twine check dist/sonivis_lens_widget-0.1.2.dev0*
twine upload dist/sonivis_lens_widget-0.1.2.dev0*
```
Expand Down
2 changes: 1 addition & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ soniscope_jupyter

Version: |release|

A Custom Jupyter Widget Library
jupyter notebook widget with a scatter plot and an interactive lens to enable interactive sonification


Quickstart
Expand Down
3 changes: 3 additions & 0 deletions examples/SoniScope.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -501,13 +501,15 @@
"#----------------------------------------------------\n",
"drpX = widgets.Dropdown(options=numeric_cols, value='temp °C', description='X-Axis:',)\n",
"drpY = widgets.Dropdown(options=numeric_cols, value='hum %', description='Y-Axis:',)\n",
"drpC = widgets.Dropdown(options=['', 'season', 'weekday', 'weathersit'], value='', description='Color:',)\n",
"\n",
"#----------------------------------------------------\n",
"# connection between frontend and python\n",
"l = widgets.link((plotBike, 'size'), (sliderSize, 'value'))\n",
"l2 = widgets.link((plotBike, 'shape'), (radioShape, 'value'))\n",
"l3 = widgets.link((plotBike, 'x_field'), (drpX, 'value'))\n",
"l4 = widgets.link((plotBike, 'y_field'), (drpY, 'value'))\n",
"l5 = widgets.link((plotBike, 'color_field'), (drpC, 'value'))\n",
"\n",
"#----------------------------------------------------\n",
"outputBike = widgets.Output() # for using print within the def on_clicked\n",
Expand All @@ -518,6 +520,7 @@
" interface_text,\n",
" drpX, \n",
" drpY,\n",
" drpC,\n",
" soni_dim, # \n",
" soni_sort_dim,\n",
" sliderSize,\n",
Expand Down
Loading

0 comments on commit b27a477

Please sign in to comment.