./
setup.py
myExt/
__init__.py
amd/
index.js
#!/usr/bin/env python
def _jupyter_nbextension_paths(): return [{ 'section': 'tree', 'src': 'amd', 'dest': 'myApp', 'require': 'myApp/index' }]
'use strict';
define(['jquery'], function ($) {
/* ############# add some validity checking to the dialog box ############## */ return { load_ipython_extension: load_ipython_extension };
function load_ipython_extension() {
// do stuff
$('<div/>', {
id: 'my-app-div',
title: 'some title',
}).appendTo('someCssSelector');
// more stuff
}