[Pythoneers] so, does your python code work?

Leonard Burtscher burtscher at mpe.mpg.de
Thu Jul 30 15:58:58 CEST 2015


Hi,

Regarding the question of reloading modules: If you add something like this:

c.InteractiveShellApp.exec_lines = [
        'import numpy as np',
        'import scipy as sp',
        'from matplotlib import pyplot as plt',
        'from imp import reload'
]

to your iPython config file ipython_config.py in .ipython/[your_profile], you get some convenient commands ready to use, e.g. just type reload(module) to reload your module.

-- Leonard


> Am 28.07.2015 um 18:23 schrieb annemieke janssen <janssen at mpe.mpg.de>:
> 
> Hi all,
> 
> I propose to discuss tests and debugging code during our last python meeting before the holidays.
> 
> Maryam will show us how to debug your code with Pdb, while I have some examples on doctests and unittests.
> 
> Hope to see you on thursday, 12:30, as usual!
> 
> cheers,
> Annemieke
> 
> _______________________________________________
> Pythoneers mailing list
> Pythoneers at lists.mpe.mpg.de
> https://lists.mpe.mpg.de/cgi-bin/mailman/listinfo/pythoneers




More information about the Pythoneers mailing list