// toggle display of all code cells' inputs

define([
    'jquery',
    'base/js/namespace',
    'base/js/events'
], function(
    $,
    Jupyter,
    events
) {
    "use strict";

    function initialize () {
        console.log("Embedded HTML Exporter loaded!");
    }

    var load_ipython_extension = function() {
      
        var dwm = $("#download_menu")
        var downloadEntry = $('<li id="download_html_embed"><a href="#">HTML Embedded (.html)</a></li>')
        dwm.append(downloadEntry)
        downloadEntry.click(function () {
            Jupyter.menubar._nbconvert('html_embed', true);
        });
      
        Jupyter.toolbar.add_buttons_group([{
            id : 'export_embeddedhtml',
            label : 'Embedded HTML Export',
            icon : 'fa-save',
            callback : function() {
                Jupyter.menubar._nbconvert('html_embed', true);
            }
        }]);
        if (Jupyter.notebook !== undefined && Jupyter.notebook._fully_loaded) {
            // notebook_loaded.Notebook event has already happened
            initialize();
        }
        events.on('notebook_loaded.Notebook', initialize);
    };

    return {
        load_ipython_extension : load_ipython_extension
    };
});

@@ -207,69 +207,14 @@
 ) %7B%0A
-        console.log(%22Embedded HTML Exporter loaded!%22);%0A
     %7D%0A
+
 %0A   
@@ -255,32 +255,80 @@
 tion() %7B%0A      %0A
+        /* Add an entry in the download menu */%0A
         var dwm 
@@ -604,24 +604,89 @@
   %7D);%0A      
+  %0A        /* Add also a Button, currently disabled */%0A        /*
 %0A        Jup
@@ -939,32 +939,32 @@
 ;%0A            %7D%0A
-
         %7D%5D);%0A   
@@ -960,16 +960,27 @@
    %7D%5D);%0A
+        */%0A
         

Remove Button, only in Download Menu