Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
# This was the order I installed things for a working scientific computing environment on my Mac. | |
brew install python | |
pip install virtualenv virtualenvwrapper | |
# Also add these to your ~/.bash_profile: | |
export PATH=/usr/local/bin:/usr/bin:$PATH | |
source /usr/local/bin/virtualenvwrapper.sh | |
# Not necessary, but quite nice |
import numpy as np | |
import rasterio as rio | |
import dask | |
import dask.array as da | |
class RioDataset(): | |
def __init__(self, filepath, band=1): | |
self.band = band | |
self.dataset = rio.open(filepath) | |
self.dtype = self.dataset.dtypes[band-1] |
Speedscope is an excellent profile viewer. Maybe you're recorded a profile with py-spy and you want to show it to other people in a GitHub issue. The speedscope app can render profiles from a URL, but where do you store the profile?
You can do this easily with gists, githack, and a little script: