Skip to main content

Test Notebook

Reading time 2 minutes
Word count 361 words
Modified March 2, 2026
Type notebook

Test Notebook

This is a test notebook to verify the Jupyter notebook rendering in Ametrine.

Features Tested

  • Markdown rendering
  • Code cells with syntax highlighting
  • Output rendering
  • Math support:
Note

This is a callout to test Obsidian callout support.

1
# A simple Python code cell
def greet(name: str) -> str:
    """Generate a greeting message."""
    return f"Hello, {name}!"

print(greet("World"))
Hello, World!

Data Example

Here's a cell that produces multiple outputs:

2
import json

data = {
    "name": "Ametrine",
    "type": "Digital Garden",
    "features": ["Wikilinks", "Graph View", "Notebooks"]
}

print(json.dumps(data, indent=2))
{
  "name": "Ametrine",
  "type": "Digital Garden",
  "features": [
    "Wikilinks",
    "Graph View",
    "Notebooks"
  ]
}

Error Example

Testing error output rendering:

3
# This will raise an error
1 / 0
ZeroDivisionError: division by zero
---------------------------------------------------------------------------
ZeroDivisionError                         Traceback (most recent call last)
Cell In[3], line 2
      1 # This will raise an error
----> 2 1 / 0

ZeroDivisionError: division by zero

Conclusion

If you can see this rendered correctly with:

  • Syntax-highlighted code
  • Rendered outputs
  • Proper error formatting
  • Math rendering

Then notebook support is working!