Skip to content

Instantly share code, notes, and snippets.

View swyoon's full-sized avatar

Sangwoong Yoon swyoon

View GitHub Profile
@swyoon
swyoon / gist:0c0e62d7a705fd92a8a2c3873062ad54
Created August 25, 2020 07:03 — forked from amrakm/gist:be4c89555ef5318aa6827905eb887d3f
Dynamically update plots in Jupyter lab
# source: https://stackoverflow.com/a/52672859/5554394
from IPython.display import clear_output
from matplotlib import pyplot as plt
import collections
%matplotlib inline
def live_plot(data_dict, figsize=(7,5), title=''):
clear_output(wait=True)
plt.figure(figsize=figsize)
@swyoon
swyoon / gist:e7cba35b569a79377fc1eb67e4f8d2ea
Created February 4, 2018 09:11
Install Vim 8 with Python, Python 3, Ruby and Lua support on Ubuntu 16.04
sudo apt-get remove --purge vim vim-runtime vim-gnome vim-tiny vim-gui-common
sudo apt-get install liblua5.1-dev luajit libluajit-5.1 python-dev ruby-dev libperl-dev libncurses5-dev libatk1.0-dev libx11-dev libxpm-dev libxt-dev
#Optional: so vim can be uninstalled again via `dpkg -r vim`
sudo apt-get install checkinstall
sudo rm -rf /usr/local/share/vim /usr/bin/vim
cd ~