Exemple #1
0
    def _server_main(cls):
        cls._server_loop = loop = IOLoop()
        loop.make_current()
        cls._server_loop.add_callback(cls._start_evt.set)

        # Set environment variable
        os.environ['NBVIEWER_TEMPLATE_PATH'] = tmpl_fixture

        main(['', '--port=%d' % cls.port] + cls.get_server_args())
        loop.close(all_fds=True)
Exemple #2
0
 def _server_main(cls):
     cls._server_loop = loop = IOLoop()
     loop.make_current()
     cls._server_loop.add_callback(cls._start_evt.set)
     main(['', '--port=%d' % cls.port] + cls.get_server_args())
     loop.close(all_fds=True)
Exemple #3
0
from nbviewer.app import main
main()
Exemple #4
0
from nbviewer.app import main

main()
Exemple #5
0
 def _server_main(cls):
     cls._server_loop = loop = IOLoop()
     loop.make_current()
     cls._server_loop.add_callback(cls._start_evt.set)
     main(['', '--port=%d' % cls.port] + cls.get_server_args())
     loop.close(all_fds=True)