BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Luhan
Obsidian | Level 7

Hi,

 

When I try to convert Jupyter Notebooks that use a SAS kernel

* to html, everything works fine.

* to pdf, the output is missing.

 

In case of a Python kernel that creates output using, e.g., the matplotlib library, this very problem (html works, but pdf doesn't) can be solved by using the command "%matplotlib inline" to include the output in the notebook.

 

Is there a similar (ods) solution in SAS?

 

Here is the code I'm using for converting the SAS notebook. The resulting html and pdf files are attached.

 

Capture.PNG

 

Any help is appreciated.

 

BR

Luhan

1 ACCEPTED SOLUTION
6 REPLIES 6
Reeza
Super User
What happens if you convert the NoteBook within the GUI instead?
Reeza
Super User

I get this error. you're likely getting the same but not seeing it in the console:

 

Screen Shot 2019-02-17 at 1.33.04 PM.png

Luhan
Obsidian | Level 7

@Reeza wrote:

I get this error. you're likely getting the same but not seeing it in the console:

 

Screen Shot 2019-02-17 at 1.33.04 PM.png


I don't get this error, but it looks as if the GUI approach works the same way as the nbconvert command: I get the same result (html works, pdf doesn't).

ChrisNZ
Tourmaline | Level 20

HTML renderers should size the cells to the contents.

Can you see the underlying SAS-generated HTML?

 

Luhan
Obsidian | Level 7

@ChrisNZ wrote:

HTML renderers should size the cells to the contents.

Can you see the underlying SAS-generated HTML?

 


Unfortunately, all I'm seeing is the resulting html that I attached to my initial post...

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 6 replies
  • 2903 views
  • 0 likes
  • 3 in conversation