{
  "cells": [
    {
      "cell_type": "markdown",
      "id": "2f21e4c5",
      "metadata": {},
      "source": [
        "# Ship Notebook Stories in Minutes\n",
        "Hugo Blox Notebook renderer turns your `.ipynb` experiments into beautiful long-form posts.\n",
        "Use this sample to see how markdown, code, and outputs flow together."
      ]
    },
    {
      "cell_type": "markdown",
      "id": "3078072c",
      "metadata": {},
      "source": [
        "1. Drop notebooks inside `assets/notebooks/` (or import them as page resources).\n",
        "2. Reference them with `{{</* notebook src=\"your.ipynb\" */>}}`.\n",
        "3. Control code, outputs, metadata badges, and download links via shortcode params."
      ]
    },
    {
      "cell_type": "code",
      "execution_count": 1,
      "id": "7b29b28a",
      "metadata": {
        "tags": [
          "demo",
          "quickstart"
        ]
      },
      "outputs": [
        {
          "name": "stdout",
          "output_type": "stream",
          "text": [
            "Collecting data...\n",
            "Training notebook-ready block...\n",
            "Done!\n"
          ]
        },
        {
          "data": {
            "text/plain": [
              "0.982"
            ]
          },
          "execution_count": 1,
          "metadata": {},
          "output_type": "execute_result"
        }
      ],
      "source": [
        "import math\n",
        "accuracy = 0.982\n",
        "print(\"Collecting data...\")\n",
        "print(\"Training notebook-ready block...\")\n",
        "print(\"Done!\")\n",
        "accuracy"
      ]
    },
    {
      "cell_type": "code",
      "execution_count": 2,
      "id": "ceecfe89",
      "metadata": {},
      "outputs": [
        {
          "data": {
            "text/html": [
              "<div style='font-family:Inter,ui-sans-serif;'><strong>Launch Readiness:</strong> <span style='color:#22c55e;'>98.2% confidence</span><br><em>Notebook blocks are theme-aware and dark-mode friendly.</em></div>"
            ],
            "text/plain": [
              "<IPython.core.display.HTML object>"
            ]
          },
          "metadata": {},
          "output_type": "display_data"
        }
      ],
      "source": [
        "from IPython.display import HTML\n",
        "HTML(\"<div style='font-family:Inter,ui-sans-serif;'><strong>Launch Readiness:</strong> <span style='color:#22c55e;'>98.2% confidence</span><br><em>Notebook blocks are theme-aware and dark-mode friendly.</em></div>\")"
      ]
    },
    {
      "cell_type": "code",
      "execution_count": 3,
      "id": "664e49ca",
      "metadata": {
        "tags": [
          "metrics"
        ]
      },
      "outputs": [
        {
          "data": {
            "application/json": {
              "metrics": {
                "engagement_rate": 0.73,
                "read_time_minutes": 4.6,
                "subscribers": 1280
              }
            },
            "text/plain": [
              "{'metrics': {'engagement_rate': 0.73, 'read_time_minutes': 4.6, 'subscribers': 1280}}"
            ]
          },
          "execution_count": 3,
          "metadata": {},
          "output_type": "execute_result"
        }
      ],
      "source": [
        "metrics = {\n",
        "    'metrics': {\n",
        "        'engagement_rate': 0.73,\n",
        "        'read_time_minutes': 4.6,\n",
        "        'subscribers': 1280\n",
        "    }\n",
        "}\n",
        "metrics"
      ]
    },
    {
      "cell_type": "markdown",
      "id": "0f761ba1",
      "metadata": {},
      "source": [
        "> Tip: Pair this block with Call-to-Action cards or the Embed shortcode to link to GitHub repos, datasets, or ARXIV preprints."
      ]
    }
  ],
  "metadata": {
    "authors": [
      {
        "name": "HugoBlox Studio"
      }
    ],
    "kernelspec": {
      "display_name": "Python 3",
      "language": "python",
      "name": "python3"
    },
    "language_info": {
      "codemirror_mode": {
        "name": "ipython",
        "version": 3
      },
      "file_extension": ".py",
      "mimetype": "text/x-python",
      "name": "python",
      "nbconvert_exporter": "python",
      "pygments_lexer": "ipython3",
      "version": "3.11"
    }
  },
  "nbformat": 4,
  "nbformat_minor": 5
}