Skip to content

Commit

Permalink
Merge pull request #1 from fhstp/upgrade_via_hatch_jupyter_builder
Browse files Browse the repository at this point in the history
Upgrade via hatch jupyter builder
  • Loading branch information
alex-rind committed Sep 9, 2023
2 parents 3f90184 + 97420bc commit dff8d41
Show file tree
Hide file tree
Showing 13 changed files with 1,066 additions and 6,387 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
40 changes: 0 additions & 40 deletions MANIFEST.in

This file was deleted.

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
9 changes: 5 additions & 4 deletions dev-logbook.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,11 @@ 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
twine check dist/sonivis_lens_widget-0.1.2.dev0*
twine upload dist/sonivis_lens_widget-0.1.2.dev0*
pip install twine hatch
# python setup.py sdist bdist_wheel
hatch build
twine check dist/soniscope_jupyter-0.1.5*
twine upload dist/soniscope_jupyter-0.1.5*
```

## Step 12: feature requests
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

0 comments on commit dff8d41

Please sign in to comment.