I am a Jupyter-lab novice, and certainly not a css expert …
With this code the green border box appears, but the lines still wrap, and no scroll bar appears:
style = {'overflow-x': 'scroll' ,'white-space': 'nowrap' ,'border': '1px solid green'}
out = widgets.Output(description = "Work1 log" ,layout=style)
display(out)
(the website might be adding a scroll bar to the quoted text when viewed on the web, which ironically is what I am trying to get the Output() widget to do. There is no scroll bar in the Jupyter notebook.)
2023-11-09T14:51:37.832184Z event> accountValueEvent AValue(account='Dxxxxx1', tag='alance', value='219272.5709', cy='BASE', modelCode='')
With this code, where ‘overflow’ replaces ‘overflow-x’, in addition to the green border box, both horizontal and vertical scroll bars show. However, the text itself still wraps just as before:
style = {'overflow': 'scroll' ,'white-space': 'nowrap' ,'border': '1px solid green'}
out = widgets.Output(description = "Work1 log" ,layout=style)
display(out)
When replacing ‘layout=style’ with ‘style=style’ , all style gets ignored. There is not even a green border box:
style = {'overflow': 'scroll' ,'white-space': 'nowrap' ,'border': '1px solid green'}
out = widgets.Output(description = "Work1 log" ,style=style)
display(out)
So why doesn’t style work? But more to the point, does anyone know how to style the Output() so that lines do not wrap, and a horizontal scroll bar appears?