def install_js(command, strict=False):
    class DecoratedCommand(command):
        def run(self):
            import notebook.nbextensions
            notebook.nbextensions.install_nbextension('./js/iprofiler',
                                                      user=True)
            command.run(self)
            update_package_data(self.distribution)
    return DecoratedCommand
Decorator for installing iprofiler.js
dataset/ETHPy150Open j-towns/iprofiler/setup.py/install_js