This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from tornado import gen, web | |
from IPython.nbformat import current as nbformat | |
from IPython.nbconvert.exporters import HTMLExporter, PDFExporter | |
import re | |
import os | |
import glob | |
import mimetypes |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def splitParts(text, stack): | |
# OOP, needed to protect raw-objects | |
if debug: print("splitParts:", text, stack) | |
try: | |
length = len(text) | |
except: | |
return [text] | |
retval = [] | |
i = 0 | |
current = makeAnnotatedString("") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from metakernel import MetaKernel | |
from pexpect import replwrap, EOF | |
import signal | |
from subprocess import check_output | |
import re | |
__version__ = '0.0' | |
version_pat = re.compile(r'version (\d+(\.\d+)+)') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from distutils.command.install import install | |
from distutils.core import setup | |
import os.path | |
import json | |
import sys | |
kernel_json = { | |
"argv": [sys.executable, | |
"-m", "calico_scheme_kernel", | |
"-f", "{connection_file}"], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from meta.asttools import Visitor | |
from meta.decompiler import _ast, decompile_func | |
class ParseFilter(Visitor): | |
def visitName(self, node): | |
return node.id | |
def visitNum(self, node): | |
return node.n | |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cells": [ | |
{ | |
"cell_type": "markdown", | |
"metadata": { | |
"slideshow": { | |
"slide_type": "slide" | |
} | |
}, | |
"source": [ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer