In octave the output of float point numbers is limited by default to 4 digits (%.4f). Is there a way to set this behavior using IPython?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you are using numpy a lot, then
numpy.set_printoptionslets you tweak that.Another option is to use the magic
%precisioncommand (only in IPython 0.11 or greater).I guess that you can put your defaults in your startup configuration file.