It looks like you have that whole program in one cell. Jupyter doesn't work well when you try to put multiple statements which create output in a single cell. It works better when you have one output generating statement per cell. There are ways around that some, but just splitting the code into different cells should solve this for you. Try the following:
cell 1
import saspy
sas = saspy.SASsession()
sas
cell 2
cars = sas.sasdata('cars','sashelp')
cars
cell 3
stat = sas.sasstat()
res = stat.reg(...)
dir(res)
cell 4
res.DIAGNOSTICPANNEL
That should get you the output from all of those different methods, which none of is showing up in your one cell.
Tom
Hi Tom,
No difference- seems like there's something up with outputting graphics vs. just an html table. Could it be java related?
Well, I can't really tell what the issue is just from this picture. Have you tried anything else? The output you show from the cars.describe() is a dataframe, not an html table. There are dozens of other methods that return html. Have you tried any? Set the results to html instead of pandas and describe and head/tail (just about everything) will return html results instead of dataframes. What browser are you using? Can you try a different one? There are plenty of other diagnostics to try, we can get the html back raw and see what it is (I'm not really expecting it to be wrong or messed up). Try rendering it manually in jupyter and see if that does the same thing. Does any html render in in this environment?
Can you submit the SASsession object, like in the example code I provided before, so then I can see other info that can help?
To try some manual html rendering, look at cells 63-67 in this example notebook: https://github.com/sassoftware/saspy-examples/blob/main/SAS_contrib/saspy_example_github.ipynb
Cell 68 in that same notebook shows you how to get the html and write it to a local file. Then open that file and the html should render in a browser or whatever you have associated as the program for a .html file.
Thanks,
Tom
That will help determine if there's an issue w/ jutpyter, the browser or something else.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.