From 419c10a255b0103dfb142c579d60ce117afea34a Mon Sep 17 00:00:00 2001 From: Donne Martin Date: Sat, 16 May 2015 08:43:12 -0400 Subject: [PATCH] Change written queue file to queue_list to avoid conflicting with IPython Notebook. --- stacks-queues/queue.ipynb | 5 +++-- stacks-queues/queue.py | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/stacks-queues/queue.ipynb b/stacks-queues/queue.ipynb index 027a833..4ac8107 100644 --- a/stacks-queues/queue.ipynb +++ b/stacks-queues/queue.ipynb @@ -90,7 +90,8 @@ }, "outputs": [], "source": [ - "%%writefile queue.py\n", + "%%writefile queue_list.py\n", + "# Need to avoid naming this queue.py as it will conflict with IPython Notebook\n", "\n", "class Node(object):\n", " def __init__(self, data):\n", @@ -135,7 +136,7 @@ }, "outputs": [], "source": [ - "%run queue.py" + "%run queue_list.py" ] }, { diff --git a/stacks-queues/queue.py b/stacks-queues/queue.py index cbe682c..25b7262 100644 --- a/stacks-queues/queue.py +++ b/stacks-queues/queue.py @@ -1,3 +1,4 @@ +# Need to avoid naming this queue.py as it will conflict with IPython Notebook class Node(object): def __init__(self, data):