Ask Your Question
1

pretty_print in interact labels

asked 2018-01-25 16:31:39 -0500

Boston gravatar image

I have written the following interact.

How cant I get the labels right? For instance, I'd rather have $N_0$ rather than N0.

Can I achieve this with pretty_print?

edit retag flag offensive close merge delete

Comments

It looks fine for me. I see the 0 in indices as expected. Did you install mathjax properly?

vdelecroix gravatar imagevdelecroix ( 2018-01-25 16:59:07 -0500 )edit

One was hidden left to the input box.

tmonteil gravatar imagetmonteil ( 2018-01-26 10:37:22 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2018-01-26 10:36:54 -0500

tmonteil gravatar image

The only place where the N0 is not wtitten properly is on the input box. You ca fix it by replacing

N0=input_box(default=1)

with

N0=input_box(default=1, label='$N_0$')

See this modified interact

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2018-01-25 16:31:39 -0500

Seen: 31 times

Last updated: Jan 26