You can tell here that it says you know ctrl + Enter and the ctrl + Enter seems to be in bold right so how do we do bold in markdown because there’s no kind of B key right or control B necessarily if you’re a Microsoft Word user so you can see and you would see this on a markdown cheat sheet that to do bold we put double asterisks on the outside of the thing that we want to be in bold ok these headers are a little bit smaller than the top header and you can see two hashes means level 2 header-right so it’s a little bit smaller than the overall header as I scroll down we can see lots of other things.
Hopefully, it’s starting to feel a little cool right if not a lot cool that you can do such nice things in such a nice easy-to-use interface right I really like the feel of Jupiter notebooks and being able to do this typing and rendering for individual cells as we go right and you’re actually not forced to do that so let’s just say all of these cells you know I had my 1 2 3 or 4 cells here all kind of an edit mode right I was actually like writing and building this notebook out for presentation to you great and I hadn’t done anything with it yet I can actually go up to run here and I can run just the selected cell that’s what I’ve been doing so far right that’s shift-enter but I can actually just run all the cells or I could run all the cells above the selected cell.
So will render every cell above whichever cell I had selected so this one didn’t get run but everything above it did okay and so I I really like this jiff of Shia LeBoeuf right hopefully this feels a little bit like magic I know it does to me still but I’m pretty easily amazed one of the other things you’ll see if you look at that markdown cheat sheet is how to include images or gifs or even videos I think inside of markdown and that’s the kind of code if you will or syntax is not all that difficult so this is just a link to that particular jiff and so I didn’t have to download that file or anything it’s just a link to that jiff which is really nice and straightforward so bulleted lists bold italics strike throughs all of that kind of stuff including links are all kind of very straightforward it’s straightforward to do so there’s actually a link to a markdown cheat sheet here so I told you that you could go ahead and Google that but there’s actually a link.
I’ll point you to if we were in person at SAS Global Forum then I would have encouraged you to check out the first exercise notebook and try some of this stuff out and I would have been able to kind of walk around and help you out exercise 1 is just basically doing your own version of the type SOI typesetting notebook so start a new notebook create a numbered list of your top 5 favorite SAS procedures for each of these include a link to the online documentation for it then in separate cells maybe create a header to the name of that procedure and an image that you think best represents that procedure and then finally create at a that contains three rows two columns with information on other talks right or videos that you wanted to see at SAS Global Forum whoops 2020.
Since I’m not there I won’t be able to kind of help you out with this one-on-one like I would have liked to but this will still be included in the Github repository materials and so I would still encourage you to give this shot just to play around with it and try it out that’s a little bit about typesetting not too complicated what about code right this is all about how to work with Jupiter with SAS so where does programming come in all right so my first SAS stupider notebook this is the programming with SAS notebook file that’s also included in the lessons folder of our repository and here you’re gonna see that I’ve got some SAS code to demonstrate write this is fantastic can this be real so an introduction to basics.
I am a statistician by training and so, of course, I have a soft spot for Fisher’s iris dataset if you’re not familiar with this dataset there’s a link here to a description of it this is actually such a popular dataset that it’s one of the ones included in the SAS help and many other kinds of languages by default in their installation and so as we saw with that very first example if I run this cell that took a few seconds but if I run that cell right it procs SG plot I’m just creating a scatter plot of my data the iris data sepal length petal length with the points colored by species right and again what’s super cool and amazing is that this graph is appearing in line after the code here.
It’s kind of I could type some introduction and some narrative text about what I’m about to do or what I’m doing some code to do that thing and then the output is gonna be is gonna appear right here right so this is extremely easy to follow it’s kind of the epitome of reproducibility right because I can actually step through someone’s analysis their whole thought process and data story and hit run as I go to see what’s going on right so this was an example of a code cell notice that we get the nice color coding that you’re maybe used to with SAS editors it may not be the colors that you’re used to but we get the nice color-coding that we’d like but that’s really nice alright so I’ve got another kind of set of code here some basic summaries of the iris data set.
My knowledge we can do almost anything you can think of in SAS but we’re not limited to comments as our only means of documenting and annotating our code right so what’s awesome is that we can kind of mix and match and we’ve to interweave our code and our text so some code here a graphic maybe an explanation or some more text a new section some more text and now write some more output and all of this is very very customizable so this is kind of the simplest possible example or one of the simplest possible examples I could give you pretends the first 10 rows of the data set and then proc means right but if you wanted to you know to limit the output or do whatever you normally do in great sophisticated ways in SAS those are all kind of still at your disposal here within the Jupiter notebook.
If you’re used to SAS though right you’re probably wondering where the log went in many ways it’s nice that our notebook has remained clean and only included our text code and output but the log is a pretty critical part of SAS were right being able to debug and see what’s going on and all that kind of stuff below are two ways you can access the log information and here you go so it may have looked like these appeared quite suddenly I think I had a small typo in my notebooks but they’re here in the video now.
It’s a small Google search a way to take a look at the lock so there’s % show log and there’s % show full log so there are our two different ways to view the log one I think is just the most recent log and one is kind of the full log history so either way all you would do is execute say one of these so let’s just go ahead and look at show log all right so I don’t haven’t run any code recently I guess besides the previous cell and I’ve run some other stuff since then