Skip to content

Commit 740f134

Browse files
committed
AP-25050: update to 5.8
AP-25050 (Add documentation for new register_debug_in_knime command)
1 parent e3161a7 commit 740f134

File tree

3 files changed

+2563
-2387
lines changed

3 files changed

+2563
-2387
lines changed

README.md

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,15 @@ The code is organized as follows:
1515
```
1616
.
1717
├── icons
18-
── icon.png
18+
── icon.png
1919
├── src
20+
│ ├── __init__.py
2021
│ └── extension.py
21-
├── demos
22+
├── demo
2223
│ └── Example_with_Python_node.knwf
24+
├── tests
25+
│ ├── conftest.py
26+
│ └── test_extension.py
2327
├── knime.yml
2428
├── pixi.toml
2529
├── config.yml
@@ -39,25 +43,22 @@ You can find instructions on how to work with our code or develop python extensi
3943
* [pixi](https://pixi.sh/latest/)
4044

4145
### Instructions:
42-
1. **Clone** this repository or use it as a **template** (click on the green "Use this template" button):
43-
2. **Edit** `knime.yml` - provide your metadata, license, ...
44-
3. _(Optional)_ Modify the `src/extension.py` file to implement your own logic.
45-
4. _(Optional)_ Add python packages to the environment with the following command, or by manually editing the `pixi.toml` file:
46-
46+
3. **Modify** the `src/extension.py` file or **add** further files to implement your own logic. Note that every py file equivalent to one node needs to be imported in the init.py file.
47+
4. **Install** the python environment:
4748
```bash
48-
pixi add <package_name>
49+
pixi install
4950
```
50-
51-
It is good practice to keep the `pixi.lock` file in this repository and commit the changes to it whenever you add packages or update them with `pixi update`.
52-
5. **Install** the python environment:
51+
This will install the Python environment as defined in the `pixi.toml` file. If you leave this file unchanged, the Python environment that is installed will have the needed KNIME packages installed per default (knime-python-versions).
52+
5. _(Optional)_ Add python packages to the environment with the following command, or by manually editing the `pixi.toml` file:
5353
```bash
54-
pixi install
54+
pixi add <package_name>
5555
```
56-
6. **Test** the extension in the KNIME Analytics Platform with the extension in debug mode by adding the following line to the knime.ini file (adjust <path_to_this_repository> in the config.yml):
56+
Note that you have to run the `pixi install` command again after manually editing the `pixi.toml` file.
57+
6. **Install** the extension in debug mode in your KNIME Analytics Platformby running the following command:
5758
```
58-
-Dknime.python.extension.config=<path/to/your/config.yml>
59+
pixi run register-debug-in-knime
5960
```
60-
This will start the KNIME Analytics Platform with your extension installed. You can now test your extension in the KNIME Analytics Platform (e.g. demo workflow).
61+
Previously this step required modifying the `config.yml`and `knime.ini` files manually. This improvement will allow you to select your KNIME Analytics Platform installation and append the `-Dknime.python.extension.debug_knime_yaml_list=<path/to/your/knime.yml>` argument automatically to the according `knime.ini` file. You can now test your extension in the KNIME Analytics Platform (e.g. demo workflow).
6162
7. **Bundle** your extension:
6263
```bash
6364
pixi run build

0 commit comments

Comments
 (0)