when i am working with ipython notebook, i want to run a notebook server. I followed the official tutorial However, when I want to obtain the get_config()
function as said in the tutorial, I come across with the name get_config
is not defined problem.
I searched the internet and found the page . However, there is no ~/.ipython/profile_default/ipython_config.py
file in my ubuntu 12.04 system. What can I do to solve the problem?
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Evil ctypes hack in python
- Correctly parse PDF paragraphs with Python
Paul Ivanov stated in the forum post:
So you can only use
get_config
in configuration files, not in anipython
session.You basically have two options:
If you only want to make temporary changes, you can use the
%config
magic. But note that changes are lost after you exit the session.The documentation says:
The second option is to create a new profile. (see
ipython profile help
). Each profile comes with its own config files. You can find the files by executing:You can add your configuration options to a specific
*_config.py
file.For a further reading, see ipython's config intro.