You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-15Lines changed: 16 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,11 +15,15 @@ The code is organized as follows:
15
15
```
16
16
.
17
17
├── icons
18
-
│ │── icon.png
18
+
│ └── icon.png
19
19
├── src
20
+
│ ├── __init__.py
20
21
│ └── extension.py
21
-
├── demos
22
+
├── demo
22
23
│ └── Example_with_Python_node.knwf
24
+
├── tests
25
+
│ ├── conftest.py
26
+
│ └── test_extension.py
23
27
├── knime.yml
24
28
├── pixi.toml
25
29
├── config.yml
@@ -39,25 +43,22 @@ You can find instructions on how to work with our code or develop python extensi
39
43
*[pixi](https://pixi.sh/latest/)
40
44
41
45
### 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:
47
48
```bash
48
-
pixi add <package_name>
49
+
pixi install
49
50
```
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:
53
53
```bash
54
-
pixi install
54
+
pixi add <package_name>
55
55
```
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:
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 selectyourKNIME 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).
0 commit comments