From 6040a2bd45d497de7113ba39d521aa1684ccf1bc Mon Sep 17 00:00:00 2001 From: Marc Wouts Date: Thu, 18 Oct 2018 22:57:39 +0200 Subject: [PATCH] New version of mirror notebook #101 --- tests/notebooks/frozen_cell_test.py | 67 ------------------- .../ipynb_to_script/frozen_cell_test.py | 25 +++++++ 2 files changed, 25 insertions(+), 67 deletions(-) delete mode 100644 tests/notebooks/frozen_cell_test.py create mode 100644 tests/notebooks/mirror/ipynb_to_script/frozen_cell_test.py diff --git a/tests/notebooks/frozen_cell_test.py b/tests/notebooks/frozen_cell_test.py deleted file mode 100644 index 1acdac657..000000000 --- a/tests/notebooks/frozen_cell_test.py +++ /dev/null @@ -1,67 +0,0 @@ -# --- -# jupyter: -# jupytext: -# formats: ipynb,py:light -# text_representation: -# extension: .py -# format_name: light -# format_version: '1.3' -# jupytext_version: 0.8.2 -# kernelspec: -# display_name: Python 3 -# language: python -# name: python3 -# language_info: -# codemirror_mode: -# name: ipython -# version: 3 -# file_extension: .py -# mimetype: text/x-python -# name: python -# nbconvert_exporter: python -# pygments_lexer: ipython3 -# version: 3.7.0 -# toc: -# nav_menu: {} -# number_sections: true -# sideBar: true -# skip_h1_title: false -# toc_cell: false -# toc_position: {} -# toc_section_display: block -# toc_window_display: false -# varInspector: -# cols: -# lenName: 16 -# lenType: 16 -# lenVar: 40 -# kernels_config: -# python: -# delete_cmd_postfix: '' -# delete_cmd_prefix: 'del ' -# library: var_list.py -# varRefreshCmd: print(var_dic_list()) -# r: -# delete_cmd_postfix: ') ' -# delete_cmd_prefix: rm( -# library: var_list.r -# varRefreshCmd: 'cat(var_dic_list()) ' -# types_to_exclude: -# - module -# - function -# - builtin_function_or_method -# - instance -# - _Feature -# window_display: false -# --- - -# + {"ExecuteTime": {"start_time": "2018-10-17T10:31:56.157308Z", "end_time": "2018-10-17T10:31:56.160823Z"}} -# This is an unfrozen cell. Works as usual. -print("I'm a regular cell so I run and print!") - -# + {"editable": false, "deletable": false, "run_control": {"frozen": true}} -# This is an frozen cell -print("I'm frozen so Im not executed :(") -# - - - diff --git a/tests/notebooks/mirror/ipynb_to_script/frozen_cell_test.py b/tests/notebooks/mirror/ipynb_to_script/frozen_cell_test.py new file mode 100644 index 000000000..bb513e57c --- /dev/null +++ b/tests/notebooks/mirror/ipynb_to_script/frozen_cell_test.py @@ -0,0 +1,25 @@ +# --- +# jupyter: +# kernelspec: +# display_name: Python 3 +# language: python +# name: python3 +# language_info: +# codemirror_mode: +# name: ipython +# version: 3 +# file_extension: .py +# mimetype: text/x-python +# name: python +# nbconvert_exporter: python +# pygments_lexer: ipython3 +# version: 3.7.0 +# --- + +# + {"ExecuteTime": {"end_time": "2018-10-17T10:31:56.160823Z", "start_time": "2018-10-17T10:31:56.157308Z"}} +# This is an unfrozen cell. Works as usual. +print("I'm a regular cell so I run and print!") + +# + {"deletable": false, "editable": false, "run_control": {"frozen": true}} +# # This is an frozen cell +# print("I'm frozen so Im not executed :(")