9

Everytime i enter into ipython mode, ipython welcomes me with this message,

WARNING: Attempting to work in a virtualenv. If you encounter 
problems, please install IPython inside the virtualenv.
Python 2.7.6 (default, Mar 22 2014, 22:59:56) 
Type "copyright", "credits" or "license" for more information.

IPython 1.2.1 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

Greeting people is all good and well but it takes up most of my shell screen and i am made to do clean to remove them.

How can i disable this welcome message via configuration file?

3 Answers3

8

You can use

ipython --no-banner

or set in configuration file

c.TerminalIPythonApp.display_banner = False
user5853825
  • 81
  • 1
  • 1
2

Just use:

ipython console

You'll get it, if that's what you want.

ljk321
  • 16,242
  • 7
  • 48
  • 60
  • Really? What version of ipython are you using? – ljk321 Apr 25 '15 at 09:50
  • IPython 1.2.1 -- An enhanced Interactive Python. –  Apr 25 '15 at 09:52
  • 1
    Wow...that's kind of old, man. I'm using IPython 3.0.0. Perhaps you should consider upgrading it. – ljk321 Apr 25 '15 at 09:54
  • it worked, man thanks.but `WARNING` statements didn't go away. one can fix it using this post, http://stackoverflow.com/questions/9031783/hide-all-warnings-in-ipython –  Apr 25 '15 at 09:59
2

Editing the IPython config file

Edit your config file and add

c.TerminalIPythonApp.display_banner = False

The default profile's config file is found at /home/<user>/.ipython/profile_default/ipython_config.py

The documentation for IPython configuration can be found here

Updating default profile

Create new config file if it does not exist, or use

ipython locate profile

to view the current profile location.

Sayooj Samuel
  • 542
  • 5
  • 8