Skip to content

Instantly share code, notes, and snippets.

View leoimpett's full-sized avatar

Leonardo L. Impett leoimpett

View GitHub Profile
# Remember to install the imagegraph Python library thus:
!pip install git+https://github.com/leoimpett/pyimagegraph
from imagegraph import *
imL00 = loadIIIFManifest("https://media.nga.gov/public/manifests/nga_highlights.json")
vL01 = getNNEmbedding(imL00)
vL02 = distanceMatrix(vL01,vL01)
_ = displayNearestNeighbors(imL00,vL02)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@leoimpett
leoimpett / hello_world.py
Created August 22, 2019 11:27
Hello World Examples
class HelloWorld:
def __init__(self, name):
self.name = name.capitalize()
def sayHi(self):
print "Hello " + self.name + "!"
hello = HelloWorld("world")
hello.sayHi()
@leoimpett
leoimpett / realworld.py
Created August 22, 2019 11:35
first real example
print realworld
@leoimpett
leoimpett / hello_world.py
Created August 22, 2019 11:58
Hello World Examples
class HelloWorld:
def __init__(self, name):
self.name = name.capitalize()
def sayHi(self):
print "Hello " + self.name + "!"
hello = HelloWorld("world")
hello.sayHi()
@leoimpett
leoimpett / hello_world.py
Created August 22, 2019 12:01
Hello World Examples
class HelloWorld:
def __init__(self, name):
self.name = name.capitalize()
def sayHi(self):
print "Hello " + self.name + "!"
hello = HelloWorld("world")
hello.sayHi()
@leoimpett
leoimpett / hello_world.py
Created August 22, 2019 12:01
Hello World Examples
class HelloWorld:
def __init__(self, name):
self.name = name.capitalize()
def sayHi(self):
print "Hello " + self.name + "!"
hello = HelloWorld("world")
hello.sayHi()
@leoimpett
leoimpett / realworld.py
Created August 22, 2019 12:05
first real example
print realworld
@leoimpett
leoimpett / hello_world.py
Created August 22, 2019 13:49
Hello World Examples
class HelloWorld:
def __init__(self, name):
self.name = name.capitalize()
def sayHi(self):
print "Hello " + self.name + "!"
hello = HelloWorld("world")
hello.sayHi()
@leoimpett
leoimpett / realworld.py
Created August 22, 2019 13:54
first real example
print realworld