kylebarron / stata_kernel

A Jupyter kernel for Stata. Works with Windows, macOS, and Linux.
https://kylebarron.dev/stata_kernel/
GNU General Public License v3.0
266 stars 57 forks source link

How can i make the results more beautiful. #431

Open lan-slot opened 2 years ago

lan-slot commented 2 years ago

FireShot Capture 030 - NARDl_model - Jupyter Notebook - localhost

The original result table is not too good to show, so how can i use any code to make the table more like a beautiful dataframe? I'v tried %html command many times, but it is not easy to make, Thanks!

mcaceresb commented 2 years ago

@lan-slot It looks like the results are not being shown in monospace; that seems like a setting you could change on the jupyter side?

If you don't want monospace, I suppose you could make a frame and display store r(C)' there; then display the results via%head`, which will format the rows like a table (however, that would lose the stars).

lan-slot commented 2 years ago

@mcaceresb I saw the original font-family, it is the monospace, also thank you so much.