Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Function Name Info Demonstration Attempt

0 views
Skip to first unread message

BenT

unread,
Jan 7, 2010, 2:28:15 AM1/7/10
to
Consider the following [Version 7] code which works except that the
output is not _completely_ contained within the Manipulate "box". Can
anyone suggest how to correct this?

Manipulate[ToExpression["??" <> f],
{{f, "Pi", "function info"}, b},
Initialization :> {
a = Append[CharacterRange["A", "Z"], "$"];
b = Flatten[Names["System`" <> # <> "*"] & /@ a, Infinity];
}
]

--- Benjamin Tubb

Albert Retey

unread,
Jan 8, 2010, 4:18:19 AM1/8/10
to
Hi,

Information prints its information as a side effect, I don't think there
is an easy way to redirect this to the Manipulate box. But the following
constructs the information that Information displays from some building
blocks:

Manipulate[
Column[{
Framed[
Row[{
Style[ToExpression[f <> "::usage"], "MSG"],
Hyperlink[Style["\[RightSkeleton]", "SR"], "paclet:ref/" <> f]
}],
Background -> LightYellow, FrameStyle -> Orange
],
Spacer[5],
Definition[Evaluate[f]]


}],
{{f, "Pi", "function info"}, b},
Initialization :> {
a = Append[CharacterRange["A", "Z"], "$"];
b = Flatten[Names["System`" <> # <> "*"] & /@ a, Infinity];
}
]

of course you can spend hours to improve the formatting :-)

hth,

albert

dh

unread,
Jan 8, 2010, 4:12:49 AM1/8/10
to

Hi Ben,

Information (??) prints its output as a side effect and returns nothing

(Null). Therefore, you can not manipulate its output in a Manipulate

statement.

I tried to capture the info redirecting the output channels: $Output,

but Information seems to be printing without using the output channels.

Daniel

0 new messages