Skip to content

Commit d2788c2

Browse files
committed
Update installation instructions
1 parent 04763a1 commit d2788c2

File tree

6 files changed

+22
-25
lines changed

6 files changed

+22
-25
lines changed

docs/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
1. Open the documentation locally
1818

1919
```sh
20-
cd _build/html/
21-
python -m http.server
20+
jlpm run serve:docs
2221
```
2322

2423
1. From a web browser, navigate to `localhost:8000`

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# -- Project information -----------------------------------------------------
2121

2222
project = 'jupyterlab-urdf'
23-
copyright = '2022, Isabel Paredes'
23+
copyright = '2023, Isabel Paredes'
2424
author = 'Isabel Paredes'
2525

2626
# The full version, including alpha/beta/rc tags

docs/installation.md

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,21 @@
22

33
## Requirements
44

5-
- JupyterLab >= 3.0
6-
7-
For running the examples and interfacing with ROS, the following packages are also required:
8-
9-
- `ros-noetic-urdf-tutorial`
10-
- `ros-noetic-turtlebot3-description`
11-
12-
These packages can be installed with `conda` from the RoboStack channel.
5+
- JupyterLab >= 4.0
136

147
## Install
158

169
To install the extension, execute:
1710

18-
1. `conda install jupyterlab-urdf -c conda-forge` or
19-
2. `pip install jupyterlab-urdf` or
20-
3. `npm i jupyterlab_urdf`
11+
- `micromamba install jupyterlab-urdf -c conda-forge` or
12+
- `pip install jupyterlab-urdf`
2113

2214
## Uninstall
2315

2416
To remove the extension, execute:
2517

26-
1. `conda remove jupyterlab-urdf` or
27-
2. `pip uninstall jupyterlab-urdf` or
28-
3. `npm uninstall jupyterlab_urdf`
18+
- `micromamba remove jupyterlab-urdf` or
19+
- `pip uninstall jupyterlab-urdf`
2920

3021
## Development install
3122

@@ -37,7 +28,7 @@ The `jlpm` command is JupyterLab's pinned version of
3728

3829
```bash
3930
# Clone the repo to your local environment
40-
# Change directory to the jupyterlab_urdf directory
31+
# Change directory to the jupyterlab-urdf directory
4132
# Install package in development mode
4233
pip install -e .
4334
# Link your development version of the extension with JupyterLab
@@ -46,6 +37,18 @@ jupyter labextension develop . --overwrite
4637
jlpm build
4738
```
4839

40+
... note::
41+
### Troubleshooting
42+
43+
If you encounter the following error, install `yarn=1.21`
44+
45+
```sh
46+
note: This error originates from a subprocess, and is likely not a problem with pip.
47+
error: metadata-generation-failed
48+
49+
× Encountered error while generating package metadata.
50+
```
51+
4952
You can watch the source directory and run JupyterLab at the same time in different terminals to watch for changes in the extension's source and automatically rebuild the extension.
5053
5154
```bash

docs/urdf_editor.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,3 @@
33
To open the text editor for any URDF file, simply right click on the file and select "Open With" > "Editor".
44

55
![Right click open editor](_static/openEditor.png)
6-
7-
Once the file is open, syntax highlighting can be enabled by selecting "XML" from the language menu in the bottom left corner.
8-
9-
![Language menu to select XML](_static/syntaxXML.png)

docs/urdf_viewer.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@ The simplest way to open the viewer is by double clicking on any already existin
44

55
With the URDF editor open, files can be modified directly and the changes will be immediately reflected in the viewer.
66

7-
**Note:** if the URDF file contains too many errors or incomplete lines, the viewer will not be able to display the robot and thus the viewer will have to be reloaded.
8-
97
![URDF live editing](_static/urdfEditor.gif)
108

119
The viewer provides a control panel to manually modify the joint positions. The changes are only reflected in the viewer and are not saved to the URDF file.
1210

1311
![Moving joints with panel](_static/urdfControls.gif)
1412

15-
Only revolute and prismatic joints will be included in the panel, fixed joints are automatically ignored. If the joints have upper and lower limits, those will become the limits of the joint slider, otherwise a default range will appear.
13+
Only revolute and prismatic joints will be included in the panel, fixed joints are automatically ignored. If the joints have upper and lower limits, those will become the limits of the joint slider.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
"prettier": "jlpm prettier:base --write --list-different",
5050
"prettier:base": "prettier \"**/*{.ts,.tsx,.js,.jsx,.css,.json,.md}\"",
5151
"prettier:check": "jlpm prettier:base --check",
52+
"serve:docs": "cd docs/_build/html && python -m http.server",
5253
"stylelint": "jlpm stylelint:check --fix",
5354
"stylelint:check": "stylelint --cache \"style/**/*.css\"",
5455
"test": "jest --coverage",

0 commit comments

Comments
 (0)