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
 Jupyter Notebook 6.4.6 DocumentationDocumentation, Release 6.4.6 (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.5.2 DocumentationDocumentation, Release 6.5.2 (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.4.5 DocumentationDocumentation, Release 6.4.5 (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 码力 | 179 页 | 1.87 MB | 1 年前3
 Jupyter Notebook 6.5.4 DocumentationDocumentation, Release 6.5.4 (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.89 MB | 1 年前3
共 62 条
- 1
 - 2
 - 3
 - 4
 - 5
 - 6
 - 7
 













