Jupyter Notebook 6.4.4 Documentationt):n”, ” """Module Loader for Jupyter Notebooks"""n”, ” def __init__(self, path=None):n”, ” self.shell = InteractiveShell.instance()n”, ” self.path 52 Chapter 3. Notebook Examples Jupyter Notebook Documentation the user_nsn”, ” # actually affect the notebook module’s nsn”, ” save_user_ns = self.shell.user_nsn”, ” self.shell.user_ns = mod.__dict__n”, ” n”, ” try:n”, ” for cell in nb.cells:n”, ” if cell.cell_type Pythonn”, ” code = self.shell.input_transformer_manager.transform_cell(cell.source)n”, ” # run the code in themodulen”, ” exec(code, mod.__dict__)n”, ” finally:n”, ” self.shell.user_ns = save_user_nsn”0 码力 | 182 页 | 1.53 MB | 1 年前3
 Jupyter Notebook 6.2.0 Documentationt):n”, ” """Module Loader for Jupyter Notebooks"""n”, ” def __init__(self, path=None):n”, ” self.shell = InteractiveShell.instance()n”, ” self.path 52 Chapter 3. Notebook Examples Jupyter Notebook Documentation the user_nsn”, ” # actually affect the notebook module’s nsn”, ” save_user_ns = self.shell.user_nsn”, ” self.shell.user_ns = mod.__dict__n”, ” n”, ” try:n”, ” for cell in nb.cells:n”, ” if cell.cell_type Pythonn”, ” code = self.shell.input_transformer_manager.transform_cell(cell.source)n”, ” # run the code in themodulen”, ” exec(code, mod.__dict__)n”, ” finally:n”, ” self.shell.user_ns = save_user_nsn”0 码力 | 176 页 | 1.51 MB | 1 年前3
 Jupyter Notebook 6.2.0 Documentationcauses all over the codebase (PR #5556 [https://github.com/jupyter/notebook/pull/5556/] Improve login shell heuristics (PR #5588 [https://github.com/jupyter/notebook/pull/5588/]) Added support for JUPYTER_TOKEN_FILE Default: '' Hashed password to use for web authentication. To generate, type in a python/IPython shell: from notebook.auth import passwd; passwd() The string should be of the form type:salt:hashed-password Currently only supports “shell_command”. On Unix, if “shell_command” is not provided, a non-login shell is launched by default when the notebook server is connected to a terminal, a login shell otherwise. NotebookApp0 码力 | 283 页 | 4.07 MB | 1 年前3
 Jupyter Notebook 6.4.4 Documentationcauses all over the codebase (5556 [https://github.com/jupyter/notebook/pull/5556] Improve login shell heuristics (5588 [https://github.com/jupyter/notebook/pull/5588]) Added support for JUPYTER_TOKEN_FILE Default: '' Hashed password to use for web authentication. To generate, type in a python/IPython shell: from notebook.auth import passwd; passwd() The string should be of the form type:salt:hashed-password Currently only supports “shell_command”. On Unix, if “shell_command” is not provided, a non-login shell is launched by default when the notebook server is connected to a terminal, a login shell otherwise. NotebookApp0 码力 | 293 页 | 4.08 MB | 1 年前3
 Jupyter Notebook 6.5.1 DocumentationDocumentation, Release 6.5.1 (continued from previous page) def __init__(self, path=None): self.shell = InteractiveShell.instance() self.path = path def load_module(self, fullname): """import a notebook save_user_ns = self.shell.user_ns self.shell.user_ns = mod.__dict__ try: for cell in nb.cells: if cell.cell_type == 'code': # transform the input to executable Python code = self.shell.input_transformer_manager transform_cell(cell.source) # run the code in themodule exec(code, mod.__dict__) finally: self.shell.user_ns = save_user_ns return mod 3.8.2 The Module Finder The finder is a simple object that tells0 码力 | 191 页 | 1.88 MB | 1 年前3
 Jupyter Notebook 6.5.0 DocumentationDocumentation, Release 6.5.0 (continued from previous page) def __init__(self, path=None): self.shell = InteractiveShell.instance() self.path = path def load_module(self, fullname): """import a notebook save_user_ns = self.shell.user_ns self.shell.user_ns = mod.__dict__ try: for cell in nb.cells: if cell.cell_type == 'code': # transform the input to executable Python code = self.shell.input_transformer_manager transform_cell(cell.source) # run the code in themodule exec(code, mod.__dict__) finally: self.shell.user_ns = save_user_ns return mod 3.8.2 The Module Finder The finder is a simple object that tells0 码力 | 189 页 | 1.88 MB | 1 年前3
 Jupyter Notebook 6.4.10 DocumentationDocumentation, Release 6.4.10 (continued from previous page) def __init__(self, path=None): self.shell = InteractiveShell.instance() self.path = path def load_module(self, fullname): """import a notebook save_user_ns = self.shell.user_ns self.shell.user_ns = mod.__dict__ try: for cell in nb.cells: if cell.cell_type == 'code': # transform the input to executable Python code = self.shell.input_transformer_manager transform_cell(cell.source) # run the code in themodule exec(code, mod.__dict__) finally: self.shell.user_ns = save_user_ns return mod 3.8.2 The Module Finder The finder is a simple object that tells0 码力 | 181 页 | 1.87 MB | 1 年前3
 Jupyter Notebook 6.4.11 DocumentationDocumentation, Release 6.4.11 (continued from previous page) def __init__(self, path=None): self.shell = InteractiveShell.instance() self.path = path def load_module(self, fullname): """import a notebook save_user_ns = self.shell.user_ns self.shell.user_ns = mod.__dict__ try: for cell in nb.cells: if cell.cell_type == 'code': # transform the input to executable Python code = self.shell.input_transformer_manager transform_cell(cell.source) # run the code in themodule exec(code, mod.__dict__) finally: self.shell.user_ns = save_user_ns return mod 3.8.2 The Module Finder The finder is a simple object that tells0 码力 | 183 页 | 1.88 MB | 1 年前3
 Jupyter Notebook 6.4.9 DocumentationDocumentation, Release 6.4.9 (continued from previous page) def __init__(self, path=None): self.shell = InteractiveShell.instance() self.path = path def load_module(self, fullname): """import a notebook save_user_ns = self.shell.user_ns self.shell.user_ns = mod.__dict__ try: for cell in nb.cells: if cell.cell_type == 'code': # transform the input to executable Python code = self.shell.input_transformer_manager transform_cell(cell.source) # run the code in themodule exec(code, mod.__dict__) finally: self.shell.user_ns = save_user_ns return mod 3.8.2 The Module Finder The finder is a simple object that tells0 码力 | 181 页 | 1.87 MB | 1 年前3
 Jupyter Notebook 6.4.12 DocumentationDocumentation, Release 6.4.12 (continued from previous page) def __init__(self, path=None): self.shell = InteractiveShell.instance() self.path = path def load_module(self, fullname): """import a notebook save_user_ns = self.shell.user_ns self.shell.user_ns = mod.__dict__ try: for cell in nb.cells: if cell.cell_type == 'code': # transform the input to executable Python code = self.shell.input_transformer_manager transform_cell(cell.source) # run the code in themodule exec(code, mod.__dict__) finally: self.shell.user_ns = save_user_ns return mod 3.8.2 The Module Finder The finder is a simple object that tells0 码力 | 185 页 | 1.88 MB | 1 年前3
共 62 条
- 1
 - 2
 - 3
 - 4
 - 5
 - 6
 - 7
 













