By default the ribbon is shown all the time. If you would like it to open only when you click it, then just double click on one of the tab names. Now the ribbon will be hidden when you don’t use it. If you want to revert the change then double click on one of the tabs again.