Wrote blog

This commit is contained in:
2026-06-07 23:26:31 +02:00
parent d0b9fd5144
commit 4a567c413a
4 changed files with 56 additions and 2 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ const links = [
<span class="section-label text-ctp-overlay text-xs uppercase tracking-widest">topics</span>
<div id="tags" class="flex flex-wrap gap-1">
{tags.map((tag) => (
<a href={`/?tag=${tag}`} class={`tag text-xs px-2 py-0.5 rounded-full cursor-pointer transition-colors ${selectedTag === tag ? 'bg-ctp-accent text-ctp-base' : 'bg-ctp-surface text-ctp-subtext hover:text-ctp-accent'}`}>
<a href={`/blog?tag=${tag}`} class={`tag text-xs px-2 py-0.5 rounded-full cursor-pointer transition-colors ${selectedTag === tag ? 'bg-ctp-accent text-ctp-base' : 'bg-ctp-surface text-ctp-subtext hover:text-ctp-accent'}`}>
{tag}
</a>
))}
@@ -0,0 +1,48 @@
---
title: Learning Python - Tutorial 1
date: 2026-06-07
published: true
tags: [python, programming, teaching]
---
# Learning Python - Tutorial 1
## Getting Jupyter Running
First of all, this Tutorial assumes that you already have access to a python environment, preferably JupyterHub.
If not there are good sources and Tutorials out there to get Jupyter Notebook/Lab running:
- [Python Download](https://www.python.org/downloads/)
- [Python Windows Install](https://docs.python.org/3/using/windows.html)
- [Python Mac Install](https://docs.python.org/3/using/mac.html)
- [Jupyter Install](https://jupyter.org/install)
If this is not an Option for you and you only want the "It Just Works" Solution with "Zero Pain" than use [Google Colab](https://colab.research.google.com/). But it requires a Google Account to function, your Notebooks therefor are stored inside Google Drive.
## Getting Started
The Interface of Jupyter is quite overwhelming on first sight. But really there are only a few things to know.
A Jupyter Notebook is just a file consisting of cells, which are wired up against a running python interpreter. The benefits against normal python scripts are the capability to write text (markdown) next to code cells and to split your code into logical units which can run out of order.
That said, on the top of the Notebook you can select which type of cell you currently want. The Options should be `plaintext`, `markdown` and `code`. For this Tutorial code cells suffice our use case, but if you want you can just write markdown to comment along you code cells.
For a Markdown Guide just follow this [Link](https://jupyter-notebook.readthedocs.io/en/stable/examples/Notebook/Working%20With%20Markdown%20Cells.html). FunFact this blog is also wrote using Markdown.
## Writing the first expression
Expressions are just Statements which python can understand the simplest one every Tutorial should start is the `Hello World` programm.
Just open a code cell write:
```python
print("Hello World")
```
and then run the cell, either over the `run`-button in the topbar or with `shift+enter`.
This should output:
```
Hello World
```
Now you can celebrate with a the best wine you can find at your local supermarket, you've programmed your first program.
@@ -0,0 +1,6 @@
---
title: Markdown Test
date: 2026-06-07
published: false
tags: [blog, nix, astro]
---
+1 -1
View File
@@ -1,7 +1,7 @@
---
title: Markdown Test
date: 2026-06-07
published: true
published: false
tags: [blog, nix, astro]
---