nbextension on dashboard page

24 views
Skip to first unread message

kuisong tong

unread,
Sep 8, 2017, 4:01:41 PM9/8/17
to Project Jupyter
Hi, all,

I have a simple nbextension js and deployed to jupyter notebook. However, it only works on notebook page. What do I need to let nbextension works on dashborad page?

define([
    'jquery',
    'base/js/utils',
], function($, utils){

    function load_ipython_extension(){
        console.info('this is my first extension.', utils.get_body_data("baseUrl"));
        $('<iframe src="/api" style="display: none;" id="iap-refresh"></iframe>')
            .appendTo("body");
    }

    return {
        load_ipython_extension: load_ipython_extension
    };
});
 
Thanks

kuisong tong

unread,
Sep 8, 2017, 5:27:49 PM9/8/17
to Project Jupyter
found it. Section in nbextension enable is exactly what I need.
Reply all
Reply to author
Forward
0 new messages