Skip to content

How to show cell output in the "app" view? #3278

Answered by hopezh
hopezh asked this question in Q&A
Discussion options

You must be logged in to vote

Ok, there is the mo.ui.text_area() function to show multi-line string in a text box.

top_level_keys = 'Top level keys: \n'

cnt = 0
for key, val in json_data.items():
    # print('key', '{:02d}'.format(cnt), ':', key)
    top_level_keys += '\t' + 'key ' + '{:02d}'.format(cnt) + ' : ' + key + '\n'
    cnt +=1

mo.ui.text_area(top_level_keys)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hopezh
Comment options

Answer selected by hopezh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant