Skip to content

Instantly share code, notes, and snippets.

View lukasz-migas's full-sized avatar
:octocat:
👨‍💻

Lukasz Migas lukasz-migas

:octocat:
👨‍💻
View GitHub Profile
@lukasz-migas
lukasz-migas / jointplot.py
Created September 17, 2019 08:43 — forked from amaloney/jointplot.py
Interactive bokeh plot similar to seaborn's jointplot
import numpy as np
import pandas as pd
import statsmodels.api as sm
from bokeh.application import Application
from bokeh.application.handlers import FunctionHandler
from bokeh.io import output_notebook, show
from bokeh.layouts import gridplot
from bokeh.models import (
ColumnDataSource, CustomJS, HoverTool, LinearAxis, Select
)
@lukasz-migas
lukasz-migas / gist:c744d95ab27bfbc8e2aa9159569945b3
Created March 16, 2018 15:14 — forked from sergey-miryanov/gist:3359203
How to use py2exe with mayavi and enable (from ETS)
import os
import sys
from distutils.core import setup
from distutils.dir_util import copy_tree
from py2exe.build_exe import py2exe
import glob
import zlib
import shutil
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lukasz-migas
lukasz-migas / temperatureCircle.py
Created December 1, 2017 20:29 — forked from anttilipp/temperatureCircle.py
Code to reproduce the "Temperature Circle" visualization.
#
# Hi all,
# this is the Python code I used to make the visualization "Temperature circle"
# (https://twitter.com/anttilip/status/892318734244884480).
# Please be aware that originally I wrote this for my tests only so the
# code was not ment to be published and is a mess and has no comments.
# Feel free to improve, modify, do whatever you want with it. If you decide
# to use the code, make an improved version of it, or it is useful for you
# in some another way I would be happy to know about it. You can contact me
# for example in Twitter (@anttilip). Unchecked demo data (no quarantees)
@lukasz-migas
lukasz-migas / visualize.py
Created October 21, 2017 21:56 — forked from youralien/visualize.py
some visualization helper functions (specifically useful for understanding feature spaces, and visualizing clustering in KMeans and GMM's) using common plotting libraries like matplotlib and seaborn,
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib as mpl
import seaborn as sns
from itertools import combinations, cycle, product
mpl_palette=['r', 'g', 'b', 'c', 'm','y']
cblind_palette=[(230,159,0),(86,180,233),(0,158,115),(240,228,66),(0,114,178),(213,94,0),(204,121,167)]
@lukasz-migas
lukasz-migas / nbstripout
Created July 17, 2017 07:59 — forked from minrk/nbstripout
git pre-commit hook for stripping output from IPython notebooks
#!/usr/bin/env python
"""strip outputs from an IPython Notebook
Opens a notebook, strips its output, and writes the outputless version to the original file.
Useful mainly as a git filter or pre-commit hook for users who don't want to track output in VCS.
This does mostly the same thing as the `Clear All Output` command in the notebook UI.
LICENSE: Public Domain