Customize your zeppelin homepage

Zeppelin allows you to use one of the notebooks you create as your zeppelin Homepage. With that you can brand your zeppelin installation, adjust the instruction to your users needs and even translate to other languages.

How to set a notebook as your zeppelin homepage

The process for creating your homepage is very simple as shown below:

  1. Create a notebook using zeppelin
  2. Set the notebook id in the config file
  3. Restart zeppelin

    Create a notebook using zeppelin

    Create a new notebook using zeppelin, you can use %md interpreter for markdown content or any other interpreter you like.

    You can also use the display system to generate text, html,table or angular

    Run (shift+Enter) the notebook and see the output. Optionally, change the notebook view to report to hide the code sections.

    Set the notebook id in the config file

    To set the notebook id in the config file you should copy it from the last word in the notebook url

    for example

    Set the notebook id to the ZEPPELIN_NOTEBOOK_HOMESCREEN environment variable or zeppelin.notebook.homescreen property.

    You can also set the ZEPPELIN_NOTEBOOK_HOMESCREEN_HIDE environment variable or zeppelin.notebook.homescreen.hide property to hide the new notebook from the notebook list.

    Restart zeppelin

    Restart your zeppelin server

    ./bin/zeppelin-deamon stop 
    ./bin/zeppelin-deamon start

    That's it! Open your browser and navigate to zeppelin and see your customized homepage...

Show notebooks list in your custom homepage

If you want to display the list of notebooks on your custom zeppelin homepage all you need to do is use our %angular support.

Add the following code to a paragraph in you home page and run it... walla! you have your notebooks list.

    <div class="col-md-4" ng-controller="HomeCtrl as home">
        <h5><a href="" data-toggle="modal" data-target="#noteNameModal" style="text-decoration: none;">
          <i style="font-size: 15px;" class="icon-notebook"></i> Create new note</a></h5>
          <ul style="list-style-type: none;">
            <li ng-repeat="note in home.notes.list track by $index"><i style="font-size: 10px;" class="icon-doc"></i>
              <a style="text-decoration: none;" href="#/notebook/"></a>

After running the notebook you will see output similar to this one:

The main trick here relays in linking the <div> to the controller:

  <div class="col-md-4" ng-controller="HomeCtrl as home">

Once we have home as our controller variable in our <div></div> we can use home.notes.list to get access to the notebook list.