Hide all warnings in ipython

I eventually figured it out. Place: import warnings warnings.filterwarnings(‘ignore’) inside ~/.ipython/profile_default/startup/disable-warnings.py. I’m leaving this question and answer for the record in case anyone else comes across the same issue. Quite often it is useful to see a warning once. This can be set by: warnings.filterwarnings(action=’once’)

Reloading submodules in IPython

IPython comes with some automatic reloading magic: %load_ext autoreload %autoreload 2 It will reload all changed modules every time before executing a new line. The way this works is slightly different than dreload. Some caveats apply, type %autoreload? to see what can go wrong. If you want to always enable this settings, modify your IPython … Read more

Purpose of “%matplotlib inline”

%matplotlib is a magic function in IPython. I’ll quote the relevant documentation here for you to read for convenience: IPython has a set of predefined ‘magic functions’ that you can call with a command line style syntax. There are two kinds of magics, line-oriented and cell-oriented. Line magics are prefixed with the % character and … Read more

How to make IPython notebook matplotlib plot inline

I used %matplotlib inline in the first cell of the notebook and it works. I think you should try: %matplotlib inline import matplotlib import numpy as np import matplotlib.pyplot as plt You can also always start all your IPython kernels in inline mode by default by setting the following config options in your config files: … Read more

What is the difference between pip and conda?

Quoting from the Conda blog: Having been involved in the python world for so long, we are all aware of pip, easy_install, and virtualenv, but these tools did not meet all of our specific requirements. The main problem is that they are focused around Python, neglecting non-Python library dependencies, such as HDF5, MKL, LLVM, etc., … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)