In [126]:
from Base_Question import make_num_grid,near_me_num,Meathead_Movers,colorful
import numpy as np
%matplotlib inline
import matplotlib.pyplot as plt
from IPython.display import Image
from IPython.display import HTML
from IPython.display import IFrame


---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-126-fa581cefd20d> in <module>()
----> 1 from Base_Question import make_num_grid,near_me_num,Meathead_Movers,colorful
      2 import numpy as np
      3 get_ipython().magic('matplotlib inline')
      4 import matplotlib.pyplot as plt
      5 from IPython.display import Image

ImportError: No module named 'Base_Question'

In [2]:
grid1 = make_num_grid(100,100,50,50)
near1 = near_me_num(grid1,50)
i = 0


---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-2-611ed2a46152> in <module>()
----> 1 grid1 = make_num_grid(100,100,50,50)
      2 near1 = near_me_num(grid1,50)
      3 i = 0

NameError: name 'make_num_grid' is not defined

In [3]:
while len(near1[3]) > 0 and len(near1[2]) > 0:
    near1 = near_me_num(grid1,50)
    grid1 = Meathead_Movers(*near1)
    print (len(near1[2]), len(near1[3]))
    i+=1
    if len(near1[2]) == len(near1[3]):
        break


---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-3-3c20793c6214> in <module>()
----> 1 while len(near1[3]) > 0 and len(near1[2]) > 0:
      2     near1 = near_me_num(grid1,50)
      3     grid1 = Meathead_Movers(*near1)
      4     print (len(near1[2]), len(near1[3]))
      5     i+=1

NameError: name 'near1' is not defined

In [4]:
colorful(grid1)


---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-4-b55ba3bd0f5c> in <module>()
----> 1 colorful(grid1)

NameError: name 'colorful' is not defined

In [5]:
print (i)


---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-5-e05cb39d39d5> in <module>()
----> 1 print (i)

NameError: name 'i' is not defined

In [6]:
Loops = [5.5,25.5,32,40,65.25,58,61.75,81,117,94.5,96.25,139.2,163,145.5,132.25,223,166.75,215.75,308.25,151.25]
Size = np.arange(5,105,5)


---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-6-15922fad048e> in <module>()
      1 Loops = [5.5,25.5,32,40,65.25,58,61.75,81,117,94.5,96.25,139.2,163,145.5,132.25,223,166.75,215.75,308.25,151.25]
----> 2 Size = np.arange(5,105,5)

NameError: name 'np' is not defined

In [7]:
plt.figure(figsize=(15,5))
plt.grid(True)
plt.plot(Size,Loops)
ax = plt.gca()
plt.title("Loops vs Size")
plt.xlabel("Size")
plt.ylabel("Loops")
ax.spines['right'].set_visible(False)
ax.spines['top'].set_visible(False)
ax.get_xaxis().tick_bottom()
ax.get_yaxis().tick_left()


---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-7-53ff9167bde0> in <module>()
----> 1 plt.figure(figsize=(15,5))
      2 plt.grid(True)
      3 plt.plot(Size,Loops)
      4 ax = plt.gca()
      5 plt.title("Loops vs Size")

NameError: name 'plt' is not defined

In [8]:
Image(url = 'http://ej.iop.org/images/1742-5468/2008/07/L07002/Full/8568503.jpg', width = 500, height = 500)


---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-8-8043109ff559> in <module>()
----> 1 Image(url = 'http://ej.iop.org/images/1742-5468/2008/07/L07002/Full/8568503.jpg', width = 500, height = 500)

NameError: name 'Image' is not defined

In [9]:
grid2 = make_num_grid(100,2,50,50)
near2 = near_me_num(grid2,50)
i = 0


---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-9-50d44cda154a> in <module>()
----> 1 grid2 = make_num_grid(100,2,50,50)
      2 near2 = near_me_num(grid2,50)
      3 i = 0

NameError: name 'make_num_grid' is not defined

In [10]:
while len(near2[3]) > 0 and len(near2[2]) > 0:
    near2 = near_me_num(grid2,50)
    grid2 = Meathead_Movers(*near2)
    print (len(near2[2]), len(near2[3]))
    i+=1
    if len(near2[2]) == len(near2[3]):
        break


---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-10-da61498fcf1d> in <module>()
----> 1 while len(near2[3]) > 0 and len(near2[2]) > 0:
      2     near2 = near_me_num(grid2,50)
      3     grid2 = Meathead_Movers(*near2)
      4     print (len(near2[2]), len(near2[3]))
      5     i+=1

NameError: name 'near2' is not defined

In [11]:
colorful(grid2)


---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-11-6fefb73ced14> in <module>()
----> 1 colorful(grid2)

NameError: name 'colorful' is not defined

In [12]:
Image(url='http://complexity.stanford.edu/wp-content/uploads/2014/06/chicagodots_race_lines.jpg', height = 500,width = 500)


---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-12-8bdf2d3bd34c> in <module>()
----> 1 Image(url='http://complexity.stanford.edu/wp-content/uploads/2014/06/chicagodots_race_lines.jpg', height = 500,width = 500)

NameError: name 'Image' is not defined

In [ ]: