This file contains 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
# %%timeit | |
import cppyy, time | |
import cppyy.gbl as g | |
from pathlib import Path | |
import numpy as np | |
import IPython.display as disp | |
from PIL import Image | |
from ctypes import c_int, c_uint, c_uint32, c_int16, c_double, c_void_p | |
import numpy as np | |
cppyy.add_include_path(str(Path(__file__).parent.parent / 'src')) |
This file contains 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
# Name Version Build Channel | |
attrs 18.1.0 py36_0 | |
blas 1.0 mkl | |
ca-certificates 2019.1.23 0 | |
certifi 2019.3.9 py36_0 | |
cython 0.29.6 py36ha925a31_0 | |
icc_rt 2019.0.0 h0cc432a_1 | |
icu 58.2 ha66f8fd_1 | |
intel-openmp 2018.0.3 0 | |
jpeg 9b hb83a4c4_2 |
This file contains 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
import sys | |
import numpy as np | |
import vispy | |
from vispy import scene, app | |
print(vispy.__version__) | |
canvas = scene.SceneCanvas(keys='interactive', size=(600, 600), show=True) | |
canvas.measure_fps() | |
grid = canvas.central_widget.add_grid(margin=10) | |
grid.spacing = 0 |
This file contains 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
# Generates a skeleton for a nicelib NiceLib and NiceObj from | |
# parsing the argnames dict of the low-level bindings | |
def gen_binding(argnames, libname, objname=None, prefix='', | |
handlename='instrumentHandle', file=sys.stdout): | |
p = lambda x: print(x, file=file) | |
indent = ' ' | |
class_lines = [] | |
obj_lines = [] | |
for name, arg in argnames.items(): | |
name = name.lstrip(prefix) |
This file contains 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
import vispy.scene as scene | |
import vispy.plot as vp | |
from vispy.color import Color | |
import vispy | |
import vispy.visuals as vv | |
from qtpy.QtCore import Signal, QTimer | |
from qtpy.QtWidgets import QWidget, QApplication, QMainWindow | |
import attr | |
vispy.use('PyQt5') |
This file contains 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
FREETYPE_BUILD_CMD = """\ | |
@ECHO OFF | |
REM call "%ProgramFiles%\\Microsoft SDKs\\Windows\\v7.0\\Bin\\SetEnv.Cmd" /Release /{xXX} /xp | |
call "{vcvarsall}" {xXX} | |
set BUILDDIR=%FREETYPE%-build | |
rd /S /Q %BUILDDIR% | |
set CMAKE="C:\\Program Files (x86)\\CMake\\bin\\cmake.exe" | |
%CMAKE% -G"NMake Makefiles" -H%FREETYPE% -B%BUILDDIR% -DCMAKE_BUILD_TYPE=Release |
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 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": "code", | |
"execution_count": 28, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [], | |
"source": [ |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>mpl_anamoaly</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder