I used the following command to initialize a profile:
ipython profile create myserver
Added thses lines to ~/.ipython/profile_myserve
Instead of using the ipython command, use jupyter:
jupyter notebook --profile=myserver
With the release of IPython 4.0, the language-agnostic pieces of IPython, such as the notebook server, were moved to Jupyter. You can read more about The Big Split and the new release of Jupyter at those links.
IPython has now moved to version 4.0, which means that if you are using it, it will be reading its configuration from ~/.jupyter, not ~/.ipython. You have to create a new configuration file with
jupyter notebook --generate-config
and then edit the resulting ~/.jupyter/jupyter_notebook_config.py file according to your needs.
More installation instructions here.