Ask Your Question
1

pretty_print in interact labels

asked 2018-01-25 23:31:39 +0100

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 23:59:07 +0100 )edit

One was hidden left to the input box.

tmonteil gravatar imagetmonteil ( 2018-01-26 17:37:22 +0100 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-01-26 17:36:54 +0100

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 23:31:39 +0100

Seen: 306 times

Last updated: Jan 26 '18