Skip to content

Live code exercise 1#87

Merged
Tom-van-Woudenberg merged 9 commits intomainfrom
live_code
Sep 17, 2025
Merged

Live code exercise 1#87
Tom-van-Woudenberg merged 9 commits intomainfrom
live_code

Conversation

@katiagatt
Copy link
Copy Markdown
Collaborator

No description provided.

Copy link
Copy Markdown
Member

@Tom-van-Woudenberg Tom-van-Woudenberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @katiagatt,

Great start! However (and I should have told you before you started), we cannot expect the users to have installed jupyterlab / VS code / etc. So I think we should have two alternatives in this exercise: 1 if they've installed IDEs and they can edits tags locally, 2 use jupytext markdown files for conversion.

For 2, if you add this to a page:

---
jupytext:
  text_representation:
    extension: .md
    format_name: myst
    format_version: 0.13
    jupytext_version: 1.17.3
kernelspec:
  display_name: base
  language: python
  name: python3
---

You can add code cells (including tags), like this:

```{code-cell} ipython3
:tags: ["thebe-init"]
print("This is a test.")
```

Example here: https://github.com/Tom-van-Woudenberg/testbook/blob/main/book/intro.md and https://tom-van-woudenberg.github.io/testbook/main/intro.html

Furthermore, could you add some python code which people can use which makes sense with the tag?

Copy link
Copy Markdown
Member

@Tom-van-Woudenberg Tom-van-Woudenberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've made some final changes. Good to go!

@Tom-van-Woudenberg Tom-van-Woudenberg merged commit 088cc24 into main Sep 17, 2025
5 checks passed
@Tom-van-Woudenberg Tom-van-Woudenberg deleted the live_code branch September 17, 2025 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants