Skip to content

Commit

Permalink
Refactor: remove explicit magic
Browse files Browse the repository at this point in the history
  • Loading branch information
agoose77 committed May 12, 2022
1 parent f279932 commit 8b15c45
Show file tree
Hide file tree
Showing 17 changed files with 2 additions and 245 deletions.
4 changes: 2 additions & 2 deletions src/literary/commands/__init__.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"notebook_metadata_filter": "-all"
},
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -29,7 +29,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.0"
"version": "3.10.4"
}
},
"nbformat": 4,
Expand Down
17 changes: 0 additions & 17 deletions src/literary/commands/__main__.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,6 @@
"# Commandline Application"
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "charming-harassment",
"metadata": {
"execution": {
"iopub.execute_input": "2021-05-18T21:00:13.513196Z",
"iopub.status.busy": "2021-05-18T21:00:13.512587Z",
"iopub.status.idle": "2021-05-18T21:00:13.648972Z",
"shell.execute_reply": "2021-05-18T21:00:13.649946Z"
}
},
"outputs": [],
"source": [
"%load_ext literary.module"
]
},
{
"cell_type": "code",
"execution_count": 2,
Expand Down
18 changes: 0 additions & 18 deletions src/literary/commands/app.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,6 @@
"# Literary Application"
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "charming-harassment",
"metadata": {
"execution": {
"iopub.execute_input": "2021-05-18T21:00:07.853310Z",
"iopub.status.busy": "2021-05-18T21:00:07.852533Z",
"iopub.status.idle": "2021-05-18T21:00:07.991109Z",
"shell.execute_reply": "2021-05-18T21:00:07.989952Z"
},
"tags": []
},
"outputs": [],
"source": [
"%load_ext literary.module"
]
},
{
"cell_type": "code",
"execution_count": 2,
Expand Down
12 changes: 0 additions & 12 deletions src/literary/commands/build.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,6 @@
"# Package Generation"
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "blessed-rehabilitation",
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"%load_ext literary.module"
]
},
{
"cell_type": "code",
"execution_count": 2,
Expand Down
22 changes: 0 additions & 22 deletions src/literary/commands/test.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,6 @@
"# Testing"
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "3f32a91b-a2e0-4397-99d6-79dc759b44f5",
"metadata": {},
"outputs": [],
"source": [
"import literary"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "early-arkansas",
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"%load_ext literary.module"
]
},
{
"cell_type": "code",
"execution_count": 3,
Expand Down
17 changes: 0 additions & 17 deletions src/literary/commands/trait.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,6 @@
"# Traits"
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "a8dccafa-b3d7-44d0-819a-62424c3080d8",
"metadata": {
"execution": {
"iopub.execute_input": "2021-05-18T21:00:32.797606Z",
"iopub.status.busy": "2021-05-18T21:00:32.796632Z",
"iopub.status.idle": "2021-05-18T21:00:32.934708Z",
"shell.execute_reply": "2021-05-18T21:00:32.934168Z"
}
},
"outputs": [],
"source": [
"%load_ext literary.module"
]
},
{
"cell_type": "code",
"execution_count": 2,
Expand Down
21 changes: 0 additions & 21 deletions src/literary/config/__init__.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,6 @@
"# Configuration"
]
},
{
"cell_type": "code",
"execution_count": 6,
"id": "acoustic-prompt",
"metadata": {
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The literary.module extension is already loaded. To reload it, use:\n",
" %reload_ext literary.module\n"
]
}
],
"source": [
"%load_ext literary.module"
]
},
{
"cell_type": "code",
"execution_count": 7,
Expand Down
10 changes: 0 additions & 10 deletions src/literary/hook/__init__.ipynb
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"id": "09f47ad4-3afc-4655-82df-8c8c59d9bc65",
"metadata": {},
"outputs": [],
"source": [
"%load_ext literary.module"
]
},
{
"cell_type": "code",
"execution_count": 12,
Expand Down
17 changes: 0 additions & 17 deletions src/literary/hook/finder.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,6 @@
"# Notebook Finder"
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "convenient-james",
"metadata": {
"execution": {
"iopub.execute_input": "2021-05-18T21:00:38.774806Z",
"iopub.status.busy": "2021-05-18T21:00:38.773483Z",
"iopub.status.idle": "2021-05-18T21:00:38.910314Z",
"shell.execute_reply": "2021-05-18T21:00:38.909277Z"
}
},
"outputs": [],
"source": [
"%load_ext literary.module"
]
},
{
"cell_type": "code",
"execution_count": 2,
Expand Down
21 changes: 0 additions & 21 deletions src/literary/hook/importer.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,6 @@
"# Import Hook"
]
},
{
"cell_type": "code",
"execution_count": 4,
"id": "convenient-james",
"metadata": {
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The literary.module extension is already loaded. To reload it, use:\n",
" %reload_ext literary.module\n"
]
}
],
"source": [
"%load_ext literary.module"
]
},
{
"cell_type": "code",
"execution_count": 5,
Expand Down
1 change: 0 additions & 1 deletion src/literary/hook/loader.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
},
"outputs": [],
"source": [
"%load_ext literary.module\n",
"from pathlib import Path\n",
"\n",
"from ..transpile.exporter import LiteraryExporter"
Expand Down
21 changes: 0 additions & 21 deletions src/literary/module/__init__.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,6 @@
"# Notebook Modules"
]
},
{
"cell_type": "code",
"execution_count": 5,
"id": "grave-racing",
"metadata": {
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The literary.module extension is already loaded. To reload it, use:\n",
" %reload_ext literary.module\n"
]
}
],
"source": [
"%load_ext literary.module"
]
},
{
"cell_type": "code",
"execution_count": 6,
Expand Down
17 changes: 0 additions & 17 deletions src/literary/transpile/exporter.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,6 @@
"# Exporter"
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "amino-timer",
"metadata": {
"execution": {
"iopub.execute_input": "2021-05-18T21:00:20.356597Z",
"iopub.status.busy": "2021-05-18T21:00:20.355821Z",
"iopub.status.idle": "2021-05-18T21:00:20.495442Z",
"shell.execute_reply": "2021-05-18T21:00:20.494199Z"
}
},
"outputs": [],
"source": [
"%load_ext literary.module"
]
},
{
"cell_type": "code",
"execution_count": 2,
Expand Down
12 changes: 0 additions & 12 deletions src/literary/transpile/filter.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,6 @@
"# Jinja Filters"
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "pursuant-sperm",
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"%load_ext literary.module"
]
},
{
"cell_type": "code",
"execution_count": 2,
Expand Down
17 changes: 0 additions & 17 deletions src/literary/transpile/patch.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,6 @@
"Literate notebooks benefit from splitting their code and documentation across several cells. Unfortunately, the nature of the notebook-kernel execution model introduces some constraints upon this, as it is impossible to extend Python local namespaces across different cells. To facilitate this, we introduce the `patch` decorator which operates at runtime and build time to unify separate definitions."
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "proof-meditation",
"metadata": {
"execution": {
"iopub.execute_input": "2021-05-18T21:00:45.234693Z",
"iopub.status.busy": "2021-05-18T21:00:45.234081Z",
"iopub.status.idle": "2021-05-18T21:00:45.373532Z",
"shell.execute_reply": "2021-05-18T21:00:45.374546Z"
}
},
"outputs": [],
"source": [
"%load_ext literary.module"
]
},
{
"cell_type": "code",
"execution_count": 2,
Expand Down
18 changes: 0 additions & 18 deletions src/literary/transpile/preprocessor.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,6 @@
"This module contains the additional nbconvert preprocessors that are required by Literary."
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "quantitative-adolescent",
"metadata": {
"execution": {
"iopub.execute_input": "2021-05-18T21:00:28.124457Z",
"iopub.status.busy": "2021-05-18T21:00:28.123035Z",
"iopub.status.idle": "2021-05-18T21:00:28.264562Z",
"shell.execute_reply": "2021-05-18T21:00:28.265011Z"
},
"tags": []
},
"outputs": [],
"source": [
"%load_ext literary.module"
]
},
{
"cell_type": "code",
"execution_count": 2,
Expand Down
2 changes: 0 additions & 2 deletions src/literary/transpile/syntax.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@
}
],
"source": [
"%load_ext literary.module\n",
"\n",
"import pytest"
]
},
Expand Down

0 comments on commit 8b15c45

Please sign in to comment.