 Jupyter Notebook 5.0.0 Documentationresults in kernels repeatedly crashing, likely due to a lack of PID reaping. To avoid this, use the tini init as your Dockerfile ENTRYPOINT: # Add Tini. Tini operates as a process subreaper for jupyter. This - my_module/ - __init__.py 10.5.2 Defining the server extension This example shows that the server extension and its load_jupyter_server_extension function are defined in the __init__.py file. my_module/__init__ my_module/__init__.py def _jupyter_server_extension_paths(): return [{ "module": "my_module" }] def load_jupyter_server_extension(nbapp): nbapp.log.info("my module enabled!") 10.3. Did it work? Check0 码力 | 129 页 | 1.76 MB | 1 年前3 Jupyter Notebook 5.0.0 Documentationresults in kernels repeatedly crashing, likely due to a lack of PID reaping. To avoid this, use the tini init as your Dockerfile ENTRYPOINT: # Add Tini. Tini operates as a process subreaper for jupyter. This - my_module/ - __init__.py 10.5.2 Defining the server extension This example shows that the server extension and its load_jupyter_server_extension function are defined in the __init__.py file. my_module/__init__ my_module/__init__.py def _jupyter_server_extension_paths(): return [{ "module": "my_module" }] def load_jupyter_server_extension(nbapp): nbapp.log.info("my module enabled!") 10.3. Did it work? Check0 码力 | 129 页 | 1.76 MB | 1 年前3
 Jupyter Notebook 5.0.0 Documentationthe-pid-1-zombie-reaping-problem/]. To avoid this, use the tini [https://github.com/krallin/tini] init as your Dockerfile ENTRYPOINT: # Add Tini. Tini operates as a process subreaper for jupyter. This - __init__.py Defining the server extension This example shows that the server extension and its load_jupyter_server_extension function are defined in the __init__.py file. my_module/__init__.py front-end module. It assumes this directory structure: - setup.py - MANIFEST.in - my_fancy_module/ - __init__.py - static/ index.js Defining the server extension and nbextension This example again shows0 码力 | 184 页 | 4.40 MB | 1 年前3 Jupyter Notebook 5.0.0 Documentationthe-pid-1-zombie-reaping-problem/]. To avoid this, use the tini [https://github.com/krallin/tini] init as your Dockerfile ENTRYPOINT: # Add Tini. Tini operates as a process subreaper for jupyter. This - __init__.py Defining the server extension This example shows that the server extension and its load_jupyter_server_extension function are defined in the __init__.py file. my_module/__init__.py front-end module. It assumes this directory structure: - setup.py - MANIFEST.in - my_fancy_module/ - __init__.py - static/ index.js Defining the server extension and nbextension This example again shows0 码力 | 184 页 | 4.40 MB | 1 年前3
 Jupyter Notebook 6.5.1 Documentationas Modules 47 Jupyter Notebook Documentation, Release 6.5.1 (continued from previous page) def __init__(self, path=None): self.shell = InteractiveShell.instance() self.path = path def load_module(self 5.1 [ ]: class NotebookFinder(object): """Module finder that locates Jupyter Notebooks""" def __init__(self): self.loaders = {} def find_module(self, fullname, path=None): nb_path = find_notebook(fullname inside the nb package, so let’s make sure that works as well. [ ]: ls nbpackage/nbs Note that the __init__.py is necessary for nb to be considered a package, just like usual. [ ]: show_notebook(os.path0 码力 | 191 页 | 1.88 MB | 1 年前3 Jupyter Notebook 6.5.1 Documentationas Modules 47 Jupyter Notebook Documentation, Release 6.5.1 (continued from previous page) def __init__(self, path=None): self.shell = InteractiveShell.instance() self.path = path def load_module(self 5.1 [ ]: class NotebookFinder(object): """Module finder that locates Jupyter Notebooks""" def __init__(self): self.loaders = {} def find_module(self, fullname, path=None): nb_path = find_notebook(fullname inside the nb package, so let’s make sure that works as well. [ ]: ls nbpackage/nbs Note that the __init__.py is necessary for nb to be considered a package, just like usual. [ ]: show_notebook(os.path0 码力 | 191 页 | 1.88 MB | 1 年前3
 Jupyter Notebook 6.5.0 Documentationas Modules 47 Jupyter Notebook Documentation, Release 6.5.0 (continued from previous page) def __init__(self, path=None): self.shell = InteractiveShell.instance() self.path = path def load_module(self 5.0 [ ]: class NotebookFinder(object): """Module finder that locates Jupyter Notebooks""" def __init__(self): self.loaders = {} def find_module(self, fullname, path=None): nb_path = find_notebook(fullname inside the nb package, so let’s make sure that works as well. [ ]: ls nbpackage/nbs Note that the __init__.py is necessary for nb to be considered a package, just like usual. [ ]: show_notebook(os.path0 码力 | 189 页 | 1.88 MB | 1 年前3 Jupyter Notebook 6.5.0 Documentationas Modules 47 Jupyter Notebook Documentation, Release 6.5.0 (continued from previous page) def __init__(self, path=None): self.shell = InteractiveShell.instance() self.path = path def load_module(self 5.0 [ ]: class NotebookFinder(object): """Module finder that locates Jupyter Notebooks""" def __init__(self): self.loaders = {} def find_module(self, fullname, path=None): nb_path = find_notebook(fullname inside the nb package, so let’s make sure that works as well. [ ]: ls nbpackage/nbs Note that the __init__.py is necessary for nb to be considered a package, just like usual. [ ]: show_notebook(os.path0 码力 | 189 页 | 1.88 MB | 1 年前3
 Jupyter Notebook 6.4.10 DocumentationModules 47 Jupyter Notebook Documentation, Release 6.4.10 (continued from previous page) def __init__(self, path=None): self.shell = InteractiveShell.instance() self.path = path def load_module(self 4.10 [ ]: class NotebookFinder(object): """Module finder that locates Jupyter Notebooks""" def __init__(self): self.loaders = {} def find_module(self, fullname, path=None): nb_path = find_notebook(fullname inside the nb package, so let’s make sure that works as well. [ ]: ls nbpackage/nbs Note that the __init__.py is necessary for nb to be considered a package, just like usual. [ ]: show_notebook(os.path0 码力 | 181 页 | 1.87 MB | 1 年前3 Jupyter Notebook 6.4.10 DocumentationModules 47 Jupyter Notebook Documentation, Release 6.4.10 (continued from previous page) def __init__(self, path=None): self.shell = InteractiveShell.instance() self.path = path def load_module(self 4.10 [ ]: class NotebookFinder(object): """Module finder that locates Jupyter Notebooks""" def __init__(self): self.loaders = {} def find_module(self, fullname, path=None): nb_path = find_notebook(fullname inside the nb package, so let’s make sure that works as well. [ ]: ls nbpackage/nbs Note that the __init__.py is necessary for nb to be considered a package, just like usual. [ ]: show_notebook(os.path0 码力 | 181 页 | 1.87 MB | 1 年前3
 Jupyter Notebook 6.4.11 DocumentationModules 47 Jupyter Notebook Documentation, Release 6.4.11 (continued from previous page) def __init__(self, path=None): self.shell = InteractiveShell.instance() self.path = path def load_module(self 4.11 [ ]: class NotebookFinder(object): """Module finder that locates Jupyter Notebooks""" def __init__(self): self.loaders = {} def find_module(self, fullname, path=None): nb_path = find_notebook(fullname inside the nb package, so let’s make sure that works as well. [ ]: ls nbpackage/nbs Note that the __init__.py is necessary for nb to be considered a package, just like usual. [ ]: show_notebook(os.path0 码力 | 183 页 | 1.88 MB | 1 年前3 Jupyter Notebook 6.4.11 DocumentationModules 47 Jupyter Notebook Documentation, Release 6.4.11 (continued from previous page) def __init__(self, path=None): self.shell = InteractiveShell.instance() self.path = path def load_module(self 4.11 [ ]: class NotebookFinder(object): """Module finder that locates Jupyter Notebooks""" def __init__(self): self.loaders = {} def find_module(self, fullname, path=None): nb_path = find_notebook(fullname inside the nb package, so let’s make sure that works as well. [ ]: ls nbpackage/nbs Note that the __init__.py is necessary for nb to be considered a package, just like usual. [ ]: show_notebook(os.path0 码力 | 183 页 | 1.88 MB | 1 年前3
 Jupyter Notebook 6.4.9 Documentationas Modules 47 Jupyter Notebook Documentation, Release 6.4.9 (continued from previous page) def __init__(self, path=None): self.shell = InteractiveShell.instance() self.path = path def load_module(self 4.9 [ ]: class NotebookFinder(object): """Module finder that locates Jupyter Notebooks""" def __init__(self): self.loaders = {} def find_module(self, fullname, path=None): nb_path = find_notebook(fullname inside the nb package, so let’s make sure that works as well. [ ]: ls nbpackage/nbs Note that the __init__.py is necessary for nb to be considered a package, just like usual. [ ]: show_notebook(os.path0 码力 | 181 页 | 1.87 MB | 1 年前3 Jupyter Notebook 6.4.9 Documentationas Modules 47 Jupyter Notebook Documentation, Release 6.4.9 (continued from previous page) def __init__(self, path=None): self.shell = InteractiveShell.instance() self.path = path def load_module(self 4.9 [ ]: class NotebookFinder(object): """Module finder that locates Jupyter Notebooks""" def __init__(self): self.loaders = {} def find_module(self, fullname, path=None): nb_path = find_notebook(fullname inside the nb package, so let’s make sure that works as well. [ ]: ls nbpackage/nbs Note that the __init__.py is necessary for nb to be considered a package, just like usual. [ ]: show_notebook(os.path0 码力 | 181 页 | 1.87 MB | 1 年前3
 Jupyter Notebook 6.4.12 DocumentationModules 47 Jupyter Notebook Documentation, Release 6.4.12 (continued from previous page) def __init__(self, path=None): self.shell = InteractiveShell.instance() self.path = path def load_module(self 4.12 [ ]: class NotebookFinder(object): """Module finder that locates Jupyter Notebooks""" def __init__(self): self.loaders = {} def find_module(self, fullname, path=None): nb_path = find_notebook(fullname inside the nb package, so let’s make sure that works as well. [ ]: ls nbpackage/nbs Note that the __init__.py is necessary for nb to be considered a package, just like usual. [ ]: show_notebook(os.path0 码力 | 185 页 | 1.88 MB | 1 年前3 Jupyter Notebook 6.4.12 DocumentationModules 47 Jupyter Notebook Documentation, Release 6.4.12 (continued from previous page) def __init__(self, path=None): self.shell = InteractiveShell.instance() self.path = path def load_module(self 4.12 [ ]: class NotebookFinder(object): """Module finder that locates Jupyter Notebooks""" def __init__(self): self.loaders = {} def find_module(self, fullname, path=None): nb_path = find_notebook(fullname inside the nb package, so let’s make sure that works as well. [ ]: ls nbpackage/nbs Note that the __init__.py is necessary for nb to be considered a package, just like usual. [ ]: show_notebook(os.path0 码力 | 185 页 | 1.88 MB | 1 年前3
 Jupyter Notebook 6.4.6 Documentationas Modules 47 Jupyter Notebook Documentation, Release 6.4.6 (continued from previous page) def __init__(self, path=None): self.shell = InteractiveShell.instance() self.path = path def load_module(self 4.6 [ ]: class NotebookFinder(object): """Module finder that locates Jupyter Notebooks""" def __init__(self): self.loaders = {} def find_module(self, fullname, path=None): nb_path = find_notebook(fullname inside the nb package, so let’s make sure that works as well. [ ]: ls nbpackage/nbs Note that the __init__.py is necessary for nb to be considered a package, just like usual. [ ]: show_notebook(os.path0 码力 | 181 页 | 1.87 MB | 1 年前3 Jupyter Notebook 6.4.6 Documentationas Modules 47 Jupyter Notebook Documentation, Release 6.4.6 (continued from previous page) def __init__(self, path=None): self.shell = InteractiveShell.instance() self.path = path def load_module(self 4.6 [ ]: class NotebookFinder(object): """Module finder that locates Jupyter Notebooks""" def __init__(self): self.loaders = {} def find_module(self, fullname, path=None): nb_path = find_notebook(fullname inside the nb package, so let’s make sure that works as well. [ ]: ls nbpackage/nbs Note that the __init__.py is necessary for nb to be considered a package, just like usual. [ ]: show_notebook(os.path0 码力 | 181 页 | 1.87 MB | 1 年前3
 Jupyter Notebook 6.5.2 Documentationas Modules 47 Jupyter Notebook Documentation, Release 6.5.2 (continued from previous page) def __init__(self, path=None): self.shell = InteractiveShell.instance() self.path = path def load_module(self 5.2 [ ]: class NotebookFinder(object): """Module finder that locates Jupyter Notebooks""" def __init__(self): self.loaders = {} def find_module(self, fullname, path=None): nb_path = find_notebook(fullname inside the nb package, so let’s make sure that works as well. [ ]: ls nbpackage/nbs Note that the __init__.py is necessary for nb to be considered a package, just like usual. [ ]: show_notebook(os.path0 码力 | 191 页 | 1.88 MB | 1 年前3 Jupyter Notebook 6.5.2 Documentationas Modules 47 Jupyter Notebook Documentation, Release 6.5.2 (continued from previous page) def __init__(self, path=None): self.shell = InteractiveShell.instance() self.path = path def load_module(self 5.2 [ ]: class NotebookFinder(object): """Module finder that locates Jupyter Notebooks""" def __init__(self): self.loaders = {} def find_module(self, fullname, path=None): nb_path = find_notebook(fullname inside the nb package, so let’s make sure that works as well. [ ]: ls nbpackage/nbs Note that the __init__.py is necessary for nb to be considered a package, just like usual. [ ]: show_notebook(os.path0 码力 | 191 页 | 1.88 MB | 1 年前3
共 62 条
- 1
- 2
- 3
- 4
- 5
- 6
- 7














