home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2010 November / maximum-cd-2010-11.iso / DiscContents / calibre-0.7.13.msi / file_1944 < prev    next >
Encoding:
Text File  |  2009-04-15  |  1.3 KB  |  37 lines

  1. # -*- Mode: Shell-Script -*-  Not really, but shows comments correctly
  2. #***************************************************************************
  3. #
  4. # Configuration file for ipython -- ipythonrc format
  5. #
  6. # The format of this file is one of 'key value' lines.
  7. # Lines containing only whitespace at the beginning and then a # are ignored
  8. # as comments. But comments can NOT be put on lines with data.
  9. #***************************************************************************
  10.  
  11. # This is an example of a 'profile' file which includes a base file and adds
  12. # some customizaton for a particular purpose.
  13.  
  14. # If this file is found in the user's ~/.ipython directory as ipythonrc-math,
  15. # it can be loaded by calling passing the '-profile math' (or '-p math')
  16. # option to IPython.
  17.  
  18. # This example is a light customization to have ipython have basic math functions
  19. # readily available, effectively making the python prompt a very capable scientific
  20. # calculator
  21.  
  22. # include base config and only add some extras
  23. include ipythonrc
  24.  
  25. # load the complex math functions but keep them in a separate namespace
  26. import_mod cmath
  27.  
  28. # from ... import *
  29. # load the real math functions in the global namespace for convenience
  30. import_all math
  31.  
  32. # from ... import ...
  33. import_some
  34.  
  35. # code to execute
  36. execute print "*** math functions available globally, cmath as a module"
  37.