Skip to content

Commit 147f743

Browse files
committed
Rename package jupyter-bluetooth-manager
1 parent 653d4ff commit 147f743

12 files changed

Lines changed: 94 additions & 94 deletions

File tree

.copier-answers.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ author_name: Florence Haudin
66
has_binder: false
77
has_settings: true
88
kind: frontend
9-
labextension_name: bluetooth-manager
9+
labextension_name: jupyter-bluetooth-manager
1010
project_short_description: A JupyterLab extension to manage to connect to devices
1111
with web bluetooth.
12-
python_name: bluetooth_manager
12+
python_name: jupyter-bluetooth-manager
1313
repository: https://github.com/QuantStack/bluetooth-manager
1414
test: true
1515

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ jobs:
5050
5151
pip install build
5252
python -m build
53-
pip uninstall -y "bluetooth_manager" jupyterlab
53+
pip uninstall -y "jupyter-bluetooth-manager" jupyterlab
5454
5555
- name: Upload extension packages
5656
uses: actions/upload-artifact@v4
5757
with:
5858
name: extension-artifacts
59-
path: dist/bluetooth_manager*
59+
path: dist/jupyter-bluetooth-manager*
6060
if-no-files-found: error
6161

6262
test_isolated:
@@ -79,7 +79,7 @@ jobs:
7979
sudo rm -rf $(which node)
8080
sudo rm -rf $(which node)
8181
82-
pip install "jupyterlab>=4.0.0,<5" bluetooth_manager*.whl
82+
pip install "jupyterlab>=4.0.0,<5" jupyter-bluetooth-manager*.whl
8383
8484
8585
jupyter labextension list
@@ -109,7 +109,7 @@ jobs:
109109
- name: Install the extension
110110
run: |
111111
set -eux
112-
python -m pip install "jupyterlab>=4.0.0,<5" bluetooth_manager*.whl
112+
python -m pip install "jupyterlab>=4.0.0,<5" jupyter-bluetooth-manager*.whl
113113
114114
- name: Install dependencies
115115
working-directory: ui-tests

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ node_modules/
77
*.egg-info/
88
.ipynb_checkpoints
99
*.tsbuildinfo
10-
bluetooth_manager/labextension
10+
jupyter_bluetooth_manager/labextension
1111
# Version file is handled by hatchling
12-
bluetooth_manager/_version.py
12+
jupyter_bluetooth_manager/_version.py
1313

1414
# Integration tests
1515
ui-tests/test-results/

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ node_modules
33
**/lib
44
**/package.json
55
!/package.json
6-
bluetooth_manager
6+
jupyter_bluetooth_manager

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# bluetooth_manager
1+
# jupyter-bluetooth-manager
22

33
A JupyterLab extension to manage to connect to devices with web bluetooth.
44

@@ -11,15 +11,15 @@ A JupyterLab extension to manage to connect to devices with web bluetooth.
1111
To install the extension, execute:
1212

1313
```bash
14-
pip install bluetooth_manager
14+
pip install jupyter-bluetooth-manager
1515
```
1616

1717
## Uninstall
1818

1919
To remove the extension, execute:
2020

2121
```bash
22-
pip uninstall bluetooth_manager
22+
pip uninstall jupyter-bluetooth-manager
2323
```
2424

2525
## Contributing
@@ -34,7 +34,7 @@ The `jlpm` command is JupyterLab's pinned version of
3434

3535
```bash
3636
# Clone the repo to your local environment
37-
# Change directory to the bluetooth_manager directory
37+
# Change directory to the jupyter-bluetooth-manager directory
3838
# Install package in development mode
3939
pip install -e "."
4040
# Link your development version of the extension with JupyterLab
@@ -63,7 +63,7 @@ jupyter lab build --minimize=False
6363
### Development uninstall
6464

6565
```bash
66-
pip uninstall bluetooth_manager
66+
pip uninstall jupyter-bluetooth-manager
6767
```
6868

6969
In development mode, you will also need to remove the symlink created by `jupyter labextension develop`

RELEASE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Making a new release of bluetooth_manager
1+
# Making a new release of jupyter-bluetooth-manager
22

33
The extension can be published to `PyPI` and `npm` manually or using the [Jupyter Releaser](https://github.com/jupyter-server/jupyter_releaser).
44

bluetooth_manager/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
# in editable mode with pip. It is highly recommended to install
88
# the package from a stable release or in editable mode: https://pip.pypa.io/en/stable/topics/local-project-installs/#editable-installs
99
import warnings
10-
warnings.warn("Importing 'bluetooth_manager' outside a proper installation.")
10+
warnings.warn("Importing 'jupyter_bluetooth_manager' outside a proper installation.")
1111
__version__ = "dev"
1212

1313

1414
def _jupyter_labextension_paths():
1515
return [{
1616
"src": "labextension",
17-
"dest": "bluetooth-manager"
17+
"dest": "jupyter-bluetooth-manager"
1818
}]

examples/introduction.ipynb

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,21 @@
1515
},
1616
{
1717
"cell_type": "code",
18-
"execution_count": 1,
18+
"execution_count": null,
1919
"id": "762d552a-dafd-4b4b-9b0c-8b6612d2415b",
2020
"metadata": {
2121
"scrolled": true
2222
},
2323
"outputs": [],
2424
"source": [
25-
"import asyncio \n",
26-
"from bluetooth_manager import MoveHubWidget,LedColor,Port, Sensor\n",
25+
"import asyncio\n",
26+
"from jupyter_bluetooth_manager import MoveHubWidget,LedColor,Port, Sensor\n",
2727
"from ipywidgets import Output\n",
2828
"from IPython.display import display\n",
2929
"\n",
3030
"# the robot's LED supports the following colors\n",
3131
"colors = [\n",
32-
" \n",
32+
"\n",
3333
" LedColor.pink,\n",
3434
" LedColor.purple,\n",
3535
" LedColor.blue,\n",
@@ -53,7 +53,7 @@
5353
},
5454
{
5555
"cell_type": "code",
56-
"execution_count": 2,
56+
"execution_count": null,
5757
"id": "aae633ad-bbb2-45c2-a1ff-5fab18146172",
5858
"metadata": {
5959
"scrolled": true
@@ -76,7 +76,7 @@
7676
],
7777
"source": [
7878
"# number of concurrent \"lanes\"\n",
79-
"n_lanes = 4 \n",
79+
"n_lanes = 4\n",
8080
"widget = MoveHubWidget(n_lanes=n_lanes)\n",
8181
"output = Output()\n",
8282
"display(widget)"
@@ -164,13 +164,13 @@
164164
"d_forward = 200\n",
165165
"d_rotate = 300\n",
166166
"output = Output()\n",
167-
"async def main(lane,log): \n",
167+
"async def main(lane,log):\n",
168168
" for i in range(4):\n",
169169
" await lane.set_led_async(\"red\")\n",
170170
" await lane.motor_angle_multi_async(angle=d_forward, power_a=speed,power_b=speed)\n",
171171
" await lane.set_led_async(\"green\")\n",
172172
" await lane.motor_angle_multi_async(angle=d_rotate, power_a=speed,power_b=-1.0*speed)\n",
173-
" \n",
173+
"\n",
174174
"movehub.run_async_program(main, output=output);\n",
175175
"output"
176176
]
@@ -207,23 +207,23 @@
207207
"def on_up(lane, log):\n",
208208
" # run sync but NON blocking\n",
209209
" lane.motor_time_multi(10, 50, 50)\n",
210-
" \n",
210+
"\n",
211211
"def on_down(lane, log):\n",
212212
" # run sync but NON blocking\n",
213213
" lane.motor_time_multi(10, -50, -50)\n",
214-
" \n",
214+
"\n",
215215
"def on_left(lane, log):\n",
216216
" # run sync but NON blocking\n",
217217
" lane.motor_time_multi(10, -50, 50)\n",
218-
" \n",
218+
"\n",
219219
"def on_right(lane, log):\n",
220220
" # run sync but NON blocking\n",
221221
" lane.motor_time_multi(10, 50, -50)\n",
222-
" \n",
222+
"\n",
223223
"def on_stop(lane, log):\n",
224224
" # run sync but NON blocking\n",
225225
" lane.motor_time_multi(0, 0, 0)\n",
226-
" \n",
226+
"\n",
227227
"button_up.on_click(lambda _: movehub.run_program(on_up, output=output))\n",
228228
"button_down.on_click(lambda _: movehub.run_program(on_down, output=output))\n",
229229
"button_left.on_click(lambda _: movehub.run_program(on_left, output=output))\n",
@@ -312,9 +312,9 @@
312312
" from bqplot import pyplot as plt\n",
313313
" from bqplot import topo_load\n",
314314
" import numpy\n",
315-
" \n",
315+
"\n",
316316
" output = Output()\n",
317-
" \n",
317+
"\n",
318318
" duration = 10.0\n",
319319
" dt = 0.10\n",
320320
" clip_value = 200\n",
@@ -369,12 +369,12 @@
369369
" log(f\"set color to {color.value}\")\n",
370370
" await lane.set_led_async(color)\n",
371371
" await asyncio.sleep(0.5)\n",
372-
" \n",
372+
"\n",
373373
"\n",
374374
"speed = 26\n",
375375
"d_forward = 200\n",
376376
"d_rotate = 300\n",
377-
"async def drive(lane, output): \n",
377+
"async def drive(lane, output):\n",
378378
" for i in range(4):\n",
379379
" await lane.motor_angle_multi_async(angle=d_forward, power_a=speed,power_b=speed)\n",
380380
" await lane.motor_angle_multi_async(angle=d_rotate, power_a=speed,power_b=-1.0*speed)\n",

install.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"packageManager": "python",
3-
"packageName": "bluetooth_manager",
4-
"uninstallInstructions": "Use your Python package manager (pip, conda, etc.) to uninstall the package bluetooth_manager"
3+
"packageName": "jupyter-bluetooth-manager",
4+
"uninstallInstructions": "Use your Python package manager (pip, conda, etc.) to uninstall the package jupyter-bluetooth-manager"
55
}

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "bluetooth-manager",
2+
"name": "jupyter-bluetooth-manager",
33
"version": "0.1.0",
44
"description": "A JupyterLab extension to manage to connect to devices with web bluetooth.",
55
"keywords": [
@@ -39,7 +39,7 @@
3939
"clean": "jlpm clean:lib",
4040
"clean:lib": "rimraf lib tsconfig.tsbuildinfo",
4141
"clean:lintcache": "rimraf .eslintcache .stylelintcache",
42-
"clean:labextension": "rimraf bluetooth_manager/labextension bluetooth_manager/_version.py",
42+
"clean:labextension": "rimraf jupyter_bluetooth_manager/labextension jupyter_bluetooth_manager/_version.py",
4343
"clean:all": "jlpm clean:lib && jlpm clean:labextension && jlpm clean:lintcache",
4444
"eslint": "jlpm eslint:check --fix",
4545
"eslint:check": "eslint . --cache --ext .ts,.tsx",
@@ -110,7 +110,7 @@
110110
},
111111
"jupyterlab": {
112112
"extension": true,
113-
"outputDir": "bluetooth_manager/labextension",
113+
"outputDir": "jupyter_bluetooth_manager/labextension",
114114
"schemaDir": "schema"
115115
},
116116
"eslintIgnore": [

0 commit comments

Comments
 (0)