Chris B
Chris B
Unless I'm missing something? ``` >>> from param.parameterized import all_equal >>> all_equal([1],[]) True >>> all_equal([1],[0]) False >>> all_equal([1,2],[1]) True >>> all_equal([1],[1,2]) True ``` ``` def all_equal(arg1,arg2): """ Return a single...
If I'm using ipython and I run `%load_ext param.ipython` everything seems good. But if I'm not using ipython, or if I use ipython without loading the ipython extension, I think...
Create a number with bounds (0,1] and verify that Number respects the bounds: ``` python >>> import param >>> class Q(param.Parameterized): ... n = param.Number(default=0.5, bounds=(0,1), inclusive_bounds=(False,True)) ... >>> q...
Logging seems to behave differently under ipython notebook vs. python Python: ``` python >>> import param >>> param.Parameterized().warning('hi') WARNING:root:Parameterized00002: hi >>> param.Parameterized().message('hi') INFO:root:Parameterized00003: hi >>> param.parameterized.get_logger().isEnabledFor(param.parameterized.INFO) True ``` In a...
E.g. https://github.com/AlbertDeFusco/tranquilizer (but see panel)
"write parameterizedfn(s) (with parameters), turn into commands (with options)" demo in #252
Param looks like an interesting library, but unfortunately I can never use it because by the time I ever get to a codebase, it's too late! People already wrote their...
Introduced in python 2.6 (https://docs.python.org/2/whatsnew/2.6.html).
We are already doing things to make param work well with sphinx, but I *think* if possible we should capture that into a sphinx autodoc extension. Would make it easier...