Skip to content

Instantly share code, notes, and snippets.

Vasiliy Zemlyanov re9ulus

Block or report user

Report or block re9ulus

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@re9ulus
re9ulus / conda tips
Created Apr 29, 2017
Python conda tips
View conda tips
# Install fbprophet on win
conda install -c conda-forge pystan
conda install -c conda-forge fbprophet
# Install xgboost
conda install -c mikesilva xgboost
# Update
conda update --all
@re9ulus
re9ulus / profile_example.py
Last active May 21, 2016
Python profiler example
View profile_example.py
# cProfile
import cProfile
source = open('path/to/src').read()
cProfile.run(source, sort='tottime)
# Line profiler (using IPython)
%load_ext line_profiler
from mypackage import foo, bar
%lprun -f bar foo()
You can’t perform that action at this time.