Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 40 additions & 18 deletions doc/code/scenarios/0_scenarios.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "markdown",
"id": "0",
"id": "89bd5aa3",
"metadata": {
"lines_to_next_cell": 0
},
Expand Down Expand Up @@ -81,9 +81,16 @@
},
{
"cell_type": "code",
"execution_count": null,
"id": "1",
"metadata": {},
"execution_count": 1,
"id": "662512dd",
"metadata": {
"execution": {
"iopub.execute_input": "2026-04-02T18:23:58.736064Z",
"iopub.status.busy": "2026-04-02T18:23:58.735819Z",
"iopub.status.idle": "2026-04-02T18:24:08.918441Z",
"shell.execute_reply": "2026-04-02T18:24:08.917006Z"
}
},
"outputs": [
{
"name": "stdout",
Expand Down Expand Up @@ -185,19 +192,16 @@
" AtomicAttack(\n",
" atomic_attack_name=strategy,\n",
" attack=attack,\n",
" seed_groups=seed_groups,\n",
" seed_groups=seed_groups, # type: ignore[arg-type]\n",
" memory_labels=self._memory_labels,\n",
" )\n",
" )\n",
" return atomic_attacks\n",
"\n",
"\n",
"scenario = MyScenario()"
" return atomic_attacks"
]
},
{
"cell_type": "markdown",
"id": "2",
"id": "a3627cad",
"metadata": {},
"source": [
"\n",
Expand All @@ -206,17 +210,30 @@
},
{
"cell_type": "code",
"execution_count": null,
"id": "3",
"metadata": {},
"execution_count": 2,
"id": "a2264dd4",
"metadata": {
"execution": {
"iopub.execute_input": "2026-04-02T18:24:08.922278Z",
"iopub.status.busy": "2026-04-02T18:24:08.921121Z",
"iopub.status.idle": "2026-04-02T18:24:09.484372Z",
"shell.execute_reply": "2026-04-02T18:24:09.482766Z"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Loading default configuration file: ./.pyrit/.pyrit_conf\n",
"Found default environment files: ['./.pyrit/.env']\n",
"Found default environment files: ['./.pyrit/.env', './.pyrit/.env.local']\n",
"Loaded environment file: ./.pyrit/.env\n",
"Loaded environment file: ./.pyrit/.env.local\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
"Available Scenarios:\n",
"================================================================================\n",
Expand Down Expand Up @@ -383,7 +400,7 @@
"0"
]
},
"execution_count": null,
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -396,7 +413,7 @@
},
{
"cell_type": "markdown",
"id": "4",
"id": "d8961494",
"metadata": {},
"source": [
"\n",
Expand All @@ -421,6 +438,11 @@
}
],
"metadata": {
"kernelspec": {
"display_name": "pyrit (3.13.5)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
Expand All @@ -431,7 +453,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.9"
"version": "3.11.15"
}
},
"nbformat": 4,
Expand Down
2 changes: 0 additions & 2 deletions doc/code/scenarios/0_scenarios.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,6 @@ async def _get_atomic_attacks_async(self) -> list[AtomicAttack]:
return atomic_attacks


scenario = MyScenario()

# %% [markdown]
#
# ## Existing Scenarios
Expand Down
Loading
Loading