Skip to content

Commit a1fe19b

Browse files
authored
Merge pull request #2 from sdsc-ordes/feat/tentris-quickstart
Feat/tentris quickstart
2 parents 41805e3 + 4d34e13 commit a1fe19b

6 files changed

Lines changed: 336 additions & 219 deletions

File tree

2025-mini-hackathon.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# How to participate in the Mini-Hackathon using Renku?
2+
3+
## Renku Workflow
4+
5+
1. Choose your team captain !
6+
2. Each team member makes an account on [RenkuLab](https://renkulab.io/)
7+
3. The team captain copies the [project quickstart](https://renkulab.io/p/open-pulse-hackathon/quickstart) into their renku user profile
8+
4. Captain adds all his team members (renku users) to that project
9+
5. Team sets up their project: add your own code repository and add your own data (Notes: do any code/data connections before launching a work session.)
10+
6. If you want to launch the quickstart session, you will be prompted to enter the connection secrets (see documents).
11+
7. If you want to launch a session with all the code from all connected code repositories, we recommend launching the standard VSCode interface of Renku and working there.
12+
13+
![alt text](docs/images/Renku.png)
14+
15+
Here are the [Open Pulse Hackathon Renku Project](https://renkulab.io/g/open-pulse-hackathon) and [the template project](https://renkulab.io/p/open-pulse-hackathon/quickstart)from which you can kick off.
16+
17+
For further Jupyter Hub Documentation you can read [here](https://jupyterhub.readthedocs.io/en/stable/);
18+
19+
You can also clone the repository and work locally via the `uv` setup if you prefer.
20+
21+
## How to submit your project?
22+
23+
Each team will be asked to submit their project through [a simple online form](https://docs.google.com/forms/d/e/1FAIpQLSeha3yJF3rxULynG0JnqPsM7d15Qk_6kvaVGmTH3rrDIipA_g/viewform?usp=publish-editor).
24+
We expect every team to prepare:
25+
26+
- One slide presentation summarizing the project’s idea, impact, and main results.
27+
- A link to a code repository (e.g. GitHub, GitLab, or similar).
28+
29+
You’re also welcome to include supplemental material such as:
30+
31+
- Renku projects or workflows
32+
- Deployed web applications or dashboards
33+
- Documentation, datasets, or other resources that support your work
34+
35+
During the final session, all projects will be presented and participants will vote using stickers to recognize the
36+
37+
## Credits
38+
39+
TBD.

README.md

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,17 @@ To be extended....
4343
![alt text](docs/images/Neo4J.png)
4444

4545
Link to Neo4j Open Pulse Instance:
46+
- Neo4J Browser: http://128.178.219.51:7503
47+
- Neo4J Bolt: http://128.178.219.51:7504
4648
Documentation: https://neo4j.com/docs/
47-
Cypher Tutorial:
49+
Cypher Tutorial: https://neo4j.com/docs/cypher-manual/current/appendix/tutorials/
4850

4951
#### CSV Example dataset
5052

5153
As an alternative to the interaction with NEO4j we compiled a subset of the graph in csv format which can be found in `data/community-network`.
5254

55+
Code for loading this csv is available in the `neo4j-quickstart` notebook.
56+
5357
### Repositories Metadata
5458

5559
To be extended....
@@ -65,22 +69,3 @@ SPARQL Tutorial: https://sparql.dev/
6569
#### Document based Metadata
6670

6771
As an alternative to SPARQL we compiled the metadata in a much more familiar formar and included a subset in `data/entities-metadata`
68-
69-
70-
## How to participate in the Mini-Hackathon using Renku?
71-
72-
TBD: Describe here the user flow including Renku use.
73-
74-
![alt text](docs/images/Renku.png)
75-
76-
Link to Renku Project: https://renkulab.io/p/robin.franken-1/quickstart
77-
Jupyter Hub Documentation: https://jupyterhub.readthedocs.io/en/stable/
78-
79-
## How to submit your project?
80-
81-
TBD..
82-
83-
84-
## Credits
85-
86-
TBD.

docs/images/Renku.png

-208 KB
Loading

src/tentris-quickstart/README.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
### 🚀 Part 1: Create the Environment (In Your Terminal)
2+
3+
First, install `uv`. Then, run **all** of the following commands in your system terminal (like Terminal, PowerShell, or bash) from the root folder of the `tentris-quickstart` project.
4+
5+
**Do not** run these in a notebook cell.
6+
7+
**1. Install `uv` (if not already done):**
8+
Run **one** of these commands in your terminal.
9+
10+
* *On macOS / Linux:*
11+
```bash
12+
curl -LsSf [https://astral.sh/uv/install.sh](https://astral.sh/uv/install.sh) | sh
13+
```
14+
* *On Windows (PowerShell):*
15+
```bash
16+
pip install uv
17+
```
18+
19+
> **Note:** After installing, you may need to **restart your terminal or VS Code** for the `uv` command to be recognized.
20+
21+
**2. Create the Environment and Install Packages:**
22+
These commands will create a local `.venv` folder, install all project dependencies (including `ipykernel`), and register it as a named kernel for Jupyter/VS Code.
23+
24+
```bash
25+
# 1. Clean up any old environment (optional, but safe)
26+
rm -rf .venv
27+
28+
# 2. Create a new, empty virtual environment
29+
uv venv
30+
31+
# 3. Install all project dependencies from the pyproject.toml file
32+
uv pip install "./src/tentris-quickstart[dev]"
33+
```
34+
35+
**3. Register the Kernel:**
36+
Now, run the command for your operating system to make the new environment visible to Jupyter/VS Code.
37+
38+
* *On macOS / Linux:*
39+
```bash
40+
.venv/bin/python -m ipykernel install --user --name="tentris-env" --display-name="Python (Tentris)"
41+
```
42+
* *On Windows (PowerShell):*
43+
```bash
44+
.venv\Scripts\python.exe -m ipykernel install --user --name="tentris-env" --display-name="Python (Tentris)"
45+
```
46+
47+
---
48+
49+
### 💻 Part 2: Run the Notebook (In VS Code)
50+
51+
Now that your environment is built and registered, you can start the notebook.
52+
53+
1. **Open VS Code:** Open the *entire* `tentris-quickstart` folder in VS Code (File > Open Folder...).
54+
2. **Open this Notebook:** Open the `.ipynb` notebook file.
55+
3. **Select the Kernel:**
56+
* Click the "Select Kernel" button in the top-right corner of the notebook.
57+
* From the dropdown list, choose **"Python (Tentris)"**. This is the name you just registered.
58+
* If VS Code prompts you, it may also auto-detect the `.venv` folder. Selecting that also works, but the named kernel is more explicit.
59+
60+
You are now ready to run the cells in the notebook.

src/tentris-quickstart/pyproject.toml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,19 @@
22
name = "tentris-notebook-env"
33
version = "0.1.0"
44
description = "Python environment for the Tentris SPARQL query notebook."
5-
6-
# Specify the minimum Python version required by Tentris
75
requires-python = ">=3.12"
86

9-
# Define the project dependencies
107
dependencies = [
118
"tentris",
129
"rdflib",
1310
"pandas",
14-
"ipykernel",
1511
"numpy",
1612
"pytz",
1713
"pyparsing",
1814
]
1915

20-
[dependency-groups]
16+
[project.optional-dependencies]
2117
dev = [
22-
"ipykernel>=7.0.1",
23-
]
24-
25-
18+
"ipykernel",
19+
"jupyter-client"
20+
]

0 commit comments

Comments
 (0)