Functions
console (message[, color]) |
Allows user-friend console logging using ANSI escape codes. |
link (name, url) |
Create popover of variable in html. |
popover (name, title, description[, url]) |
Create popover of variable in html. |
stn (source) |
Convert to scientific notation. |
library ([required]) |
Check if required libraries are available. |
imhr.settings.
console
(message, color='blue')[source]¶Allows user-friend console logging using ANSI escape codes.
Parameters: | |
---|---|
Returns: |
|
Notes
Colors are produced using ASCII Oct format. For example: ‘[40m. See http://jafrog.com/2013/11/23/colors-in-terminal.html for more.
Examples
>>> console(self, message, color='blue)
imhr.settings.
link
(name, url)[source]¶Create popover of variable in html.
Parameters: | |
---|---|
Returns: |
|
Examples
>>> link(name=roi, url="#boxplot")
<a href="#boxplot" class="anchor">roi</a>
imhr.settings.
popover
(name, title, description, url=None, **kwargs)[source]¶Create popover of variable in html.
Parameters: |
|
||||
---|---|---|---|---|---|
Returns: |
|
Examples
>>> description = "Chambers, J., Hastie, T. (1992). Statistical Models in S. Wadsworth & Brooks/Cole."
>>> popover(name="anova", title="Statistical Models in S", description=description)
<a tabindex="0" class="popover-anchor" link-id="anova" data-toggle="popover" data-content="Chambers, J., Hastie, T. (1992). Statistical Models in S. Wadsworth & Brooks/Cole." title="" data-original-title="Statistical Models in S">Chambers, Hastie, 1992</a>