MCPcopy Create free account

hub / github.com/jupytext/jupytext / functions

Functions1,277 in github.com/jupytext/jupytext

Functiontest_jupytext_to_ipynb_does_not_update_timestamp_if_not_paired
(tmpdir, cwd_tmpdir, python_notebook, capsys, formats)
tests/functional/cli/test_cli.py:1200
Functiontest_jupytext_to_ipynb_does_not_update_timestamp_if_output_not_in_pair
( tmpdir, cwd_tmpdir, python_notebook, capsys, formats )
tests/functional/cli/test_cli.py:1175
Functiontest_jupytext_to_ipynb_suggests_update
(tmpdir, cwd_tmpdir, capsys)
tests/functional/cli/test_cli.py:1163
Functiontest_jupytext_to_raises_on_synchronous_edits
(tmp_path, python_notebook, monkeypatch)
tests/functional/cli/test_synchronous_changes.py:73
Functiontest_jupytext_update_preserves_cell_ids
(tmpdir, cwd_tmpdir, notebook_with_outputs)
tests/functional/cli/test_cli.py:1142
Functiontest_jupytext_version
(capsys)
tests/functional/cli/test_cli.py:87
Functiontest_kernelspec_are_preserved
(ipynb_py_file, cm, tmpdir)
tests/integration/contents_manager/test_contentsmanager.py:652
Functiontest_language_and_attribute
(text="python .class", value=("python", {".class": None}))
tests/functional/others/test_cell_metadata.py:180
Functiontest_language_metadata_no_space
(text='python{"a":1}', value=("python", {"a": 1}))
tests/functional/others/test_cell_metadata.py:130
Functiontest_language_no_metadata
(text="python", value=("python", {}))
tests/functional/others/test_cell_metadata.py:110
Functiontest_lexer_is_preserved_in_round_trips
( tmp_path, no_jupytext_version_number, header, text="""```{code-cell} ipython3 1 + 1 ``` """,
tests/functional/cli/test_cli.py:1338
Functiontest_list_in_metadata
(cell_metadata={"d": ["e"]})
tests/functional/simple_notebooks/test_read_simple_rmd.py:143
Functiontest_load_jupytext_configuration_file
(tmpdir, config_file)
tests/functional/config/test_config.py:103
Functiontest_load_save_keeps_simple_python_file_unchanged
Test that jupytext --sync on a simple Python file leaves it unchanged, even if a Jupytext configuration has formats=ipynb,py:percent
tests/integration/contents_manager/test_contentsmanager.py:1983
Functiontest_load_save_percent_format
(percent_file, cm, tmpdir)
tests/integration/contents_manager/test_contentsmanager.py:523
Functiontest_load_save_py_freeze_metadata
(python_file, cm, tmpdir)
tests/integration/contents_manager/test_contentsmanager.py:236
Functiontest_load_save_rename
(ipynb_py_R_jl_file, cm, tmpdir)
tests/integration/contents_manager/test_contentsmanager.py:108
Functiontest_load_save_rename_nbpy
(ipynb_py_file, cm, tmpdir)
tests/integration/contents_manager/test_contentsmanager.py:207
Functiontest_load_save_rename_nbpy_default_config
(ipynb_py_file, cm, tmpdir)
tests/integration/contents_manager/test_contentsmanager.py:310
Functiontest_load_save_rename_non_ascii_path
(ipynb_py_file, cm, tmpdir)
tests/integration/contents_manager/test_contentsmanager.py:348
Functiontest_load_save_rename_notebook_with_dot
(ipynb_py_file, cm, tmpdir)
tests/integration/contents_manager/test_contentsmanager.py:285
Functiontest_load_text_notebook
(tmpdir, cm)
tests/integration/contents_manager/test_contentsmanager.py:262
Functiontest_load_then_change_formats
(tmpdir, cm)
tests/integration/contents_manager/test_contentsmanager.py:1192
Functiontest_local_config_overrides_cm_config
(tmpdir, cm)
tests/integration/contents_manager/test_cm_config.py:20
Functiontest_local_format_can_deactivate_pairing
This is a test for #157: local format can be used to deactivate the global pairing
tests/integration/contents_manager/test_contentsmanager.py:1052
Functiontest_long_string
( text="""'''This is a multiline comment with "quotes", 'single quotes' # and comments and line breaks a
tests/unit/test_stringparser.py:4
Functiontest_long_string_ends_with_four_quotes
( text="""'''This is a multiline comment that ends with four quotes '''' 1 + 1 """, )
tests/unit/test_stringparser.py:64
Functiontest_long_string_with_four_quotes
( text="""''''This is a multiline comment that starts with four quotes ''' 1 + 1 """, )
tests/unit/test_stringparser.py:46
Functiontest_magic_assign_781
()
tests/unit/test_escape_magics.py:277
Functiontest_magic_assign_816
()
tests/unit/test_escape_magics.py:285
Functiontest_magic_commands_are_commented
( go="""// %% // !*rm -f go.work && go work init && go work use . ${HOME}/Projects/gopjrt // %goworkfix //
tests/functional/simple_notebooks/test_read_simple_go.py:138
Functiontest_magics_are_commented
(fmt)
tests/unit/test_escape_magics.py:91
Functiontest_magics_are_not_commented
(fmt)
tests/unit/test_escape_magics.py:116
Functiontest_magics_commented_default
(fmt, commented)
tests/unit/test_escape_magics.py:74
Functiontest_main_formats_support_cell_metadata
(fmt)
tests/functional/others/test_cell_tags_are_preserved.py:19
Functiontest_manual_call_of_pre_commit_hook
(tmpdir)
tests/external/pre_commit/test_pre_commit_scripts.py:277
Functiontest_many_and_suffix
()
tests/unit/test_paired_paths.py:172
Functiontest_marimo_py_to_notebook
(py_marimo, notebook)
tests/external/test_marimo.py:42
Functiontest_marimo_to_ipynb
(marimo_file, no_jupytext_version_number)
tests/functional/round_trip/test_mirror.py:96
Functiontest_mark_cell_with_no_title_and_inner_region
( script="""# This is a markdown cell # region {"key": "value"} a = 1 # region An inner region b = 2 # e
tests/functional/simple_notebooks/test_read_folding_markers.py:65
Functiontest_mark_cell_with_vim_folding_markers
( script="""# This is a markdown cell # {{{ And this is a foldable code region with metadata {"key": "val
tests/functional/simple_notebooks/test_read_folding_markers.py:7
Functiontest_mark_cell_with_vscode_pycharm_folding_markers
( script="""# This is a markdown cell # region And this is a foldable code region with metadata {"key": "
tests/functional/simple_notebooks/test_read_folding_markers.py:38
Functiontest_markdown_and_r_extensions
(tmpdir, cm)
tests/integration/contents_manager/test_contentsmanager.py:1580
Functiontest_markdown_cell_with_backslash_is_encoded_with_raw_string
( nb=new_notebook(cells=[new_markdown_cell(r"A $\LaTeX$ expression")]), py=r'''# %% [markdown] r""" A
tests/functional/others/test_raw_strings.py:8
Functiontest_markdown_cell_with_code_inside_multiline_string_419
A code cell containing triple backticks is converted to a code cell encapsulated with four backticks
tests/functional/simple_notebooks/test_read_simple_markdown.py:735
Functiontest_markdown_cell_with_code_works
( nb=new_notebook( cells=[ new_markdown_cell( """```python 1 + 1 ```""
tests/functional/simple_notebooks/test_read_simple_rmd.py:67
Functiontest_markdown_cell_with_code_works
( nb=new_notebook( cells=[ new_markdown_cell( """```python 1 + 1 ```""
tests/functional/simple_notebooks/test_read_simple_markdown.py:661
Functiontest_markdown_cell_with_metadata
( markdown="""<!-- #region key="value" --> A long markdown cell <!-- #endregion --> """, )
tests/functional/simple_notebooks/test_read_simple_markdown.py:389
Functiontest_markdown_cell_with_metadata_json
( markdown="""<!-- #region {"key": "value"} --> A long markdown cell <!-- #endregion --> """, )
tests/functional/simple_notebooks/test_read_simple_markdown.py:370
Functiontest_markdown_cell_with_noeval_code_works
( nb=new_notebook( cells=[ new_markdown_cell( """```python .noeval 1 +
tests/functional/simple_notebooks/test_read_simple_markdown.py:677
Functiontest_markdown_image_is_not_magic
()
tests/unit/test_escape_magics.py:207
Functiontest_markdown_jupytext_nbconvert_is_identity
Test that a Markdown file, converted to a notebook, then exported back to Markdown with nbconvert, yields the original file
tests/functional/round_trip/test_jupytext_nbconvert_round_trip.py:8
Functiontest_markdown_to_doxygen
()
tests/functional/others/test_doxygen.py:22
Functiontest_markdown_with_metadata
( text="""# + [markdown] key="value" # Markdown cell """, notebook=new_notebook(cells=[new_markdown_ce
tests/functional/simple_notebooks/test_read_simple_python.py:987
Functiontest_matches_mystnb
()
tests/functional/simple_notebooks/test_ipynb_to_myst.py:86
Functiontest_md_to_ipynb
(md_file, no_jupytext_version_number)
tests/functional/round_trip/test_mirror.py:100
Functiontest_meaningfull_error_open_myst_missing
(tmpdir, cm)
tests/functional/simple_notebooks/test_ipynb_to_myst.py:184
Functiontest_meaningfull_error_when_pandoc_is_missing
(tmpdir)
tests/external/simple_external_notebooks/test_read_simple_pandoc.py:81
Functiontest_meaningfull_error_write_myst_missing
(tmpdir)
tests/functional/simple_notebooks/test_ipynb_to_myst.py:174
Functiontest_metadata_and_cell_to_header
(no_jupytext_version_number)
tests/unit/test_header.py:85
Functiontest_metadata_and_cell_to_header2
(no_jupytext_version_number)
tests/unit/test_header.py:104
Functiontest_metadata_filter_as_dict
()
tests/functional/metadata/test_metadata_filter.py:36
Functiontest_metadata_filter_default
()
tests/functional/metadata/test_metadata_filter.py:42
Functiontest_metadata_filter_from_config_has_precedence_over_notebook_metadata
(tmpdir, cwd_tmpdir, cm, python_notebook)
tests/integration/contents_manager/test_cm_config.py:170
Functiontest_metadata_filter_in_notebook_757
()
tests/functional/metadata/test_metadata_filter.py:165
Functiontest_metadata_filter_is_effective
(ipynb_py_R_jl_file, cm, tmpdir)
tests/integration/contents_manager/test_contentsmanager.py:966
Functiontest_metadata_filter_user_overrides_default
()
tests/functional/metadata/test_metadata_filter.py:57
Functiontest_metadata_filter_user_plus_default
()
tests/functional/metadata/test_metadata_filter.py:47
Functiontest_metadata_filters_from_config
(tmpdir)
tests/functional/metadata/test_metadata_filters_from_config.py:11
Functiontest_metadata_stays_in_order_1368
( tmp_path, cm, md="""--- jupytext: formats: md:myst notebook_metadata_filter: -jupytext.text_
tests/integration/contents_manager/test_contentsmanager.py:1907
Functiontest_move_paired_notebook_outside_of_notebook_dir_1414
(tmp_path, cm, python_notebook, copy: bool, config_file: bool)
tests/integration/contents_manager/test_contentsmanager.py:1797
Functiontest_move_paired_notebook_outside_of_pairing_config_1414
(tmp_path, cm, python_notebook)
tests/integration/contents_manager/test_contentsmanager.py:1831
Functiontest_move_paired_notebook_to_subdir_1059
(tmp_path, cm, python_notebook)
tests/integration/contents_manager/test_contentsmanager.py:1762
Functiontest_multiline_comments_format_option
()
tests/functional/simple_notebooks/test_read_simple_percent.py:277
Functiontest_multiline_comments_in_markdown_1
()
tests/functional/simple_notebooks/test_read_simple_percent.py:245
Functiontest_multiline_comments_in_markdown_1
()
tests/functional/simple_notebooks/test_read_simple_python.py:999
Functiontest_multiline_comments_in_markdown_2
()
tests/functional/simple_notebooks/test_read_simple_percent.py:261
Functiontest_multiline_comments_in_markdown_2
()
tests/functional/simple_notebooks/test_read_simple_python.py:1015
Functiontest_multiline_comments_in_markdown_cell_is_robust_to_additional_cell_marker
()
tests/functional/simple_notebooks/test_read_simple_percent.py:320
Functiontest_multiline_comments_in_markdown_cell_is_robust_to_additional_cell_marker
()
tests/functional/simple_notebooks/test_read_simple_python.py:1058
Functiontest_multiline_comments_in_markdown_cell_no_line_return
()
tests/functional/simple_notebooks/test_read_simple_percent.py:308
Functiontest_multiline_comments_in_markdown_cell_no_line_return
()
tests/functional/simple_notebooks/test_read_simple_python.py:1046
Functiontest_multiline_comments_in_raw_cell
()
tests/functional/simple_notebooks/test_read_simple_percent.py:293
Functiontest_multiline_comments_in_raw_cell
()
tests/functional/simple_notebooks/test_read_simple_python.py:1031
Functiontest_multiline_metadata
( no_jupytext_version_number, notebook=new_notebook( metadata={ "multiline": """A
tests/unit/test_header.py:124
Functiontest_multiline_python_magic
(no_jupytext_version_number)
tests/unit/test_escape_magics.py:218
Functiontest_multiple_empty_cells
()
tests/functional/simple_notebooks/test_read_simple_percent.py:210
Functiontest_multiple_formats_771
(tmpdir, cwd_tmpdir, python_notebook)
tests/functional/cli/test_cli_config.py:173
Functiontest_multiple_pairing
Test that multiple pairing works. Input cells are loaded from the most recent text representation among the paired ones
tests/integration/contents_manager/test_contentsmanager.py:1605
Functiontest_mutiple_cells_differ
()
tests/unit/test_compare.py:255
Functiontest_myst_file_has_myst_format
(myst_file)
tests/functional/round_trip/test_mirror.py:105
Functiontest_myst_frontmatter_metadata_combo
(no_jupytext_version_number)
tests/functional/round_trip/test_myst_header.py:69
Functiontest_myst_header_is_stable_1247_using_config
( jupytext_toml_content="""notebook_metadata_filter = "-jupytext.text_representation.jupytext_version,sett
tests/functional/round_trip/test_myst_header.py:39
Functiontest_myst_header_is_stable_1247_using_inline_filter
( md="""--- jupytext: formats: md:myst notebook_metadata_filter: -jupytext.text_representation.jupytex
tests/functional/round_trip/test_myst_header.py:12
Functiontest_myst_metadata_support_unicode_characters
( md="""--- jupytext: formats: md:myst notebook_metadata_filter: -jupytext.text_representation.jupytex
tests/functional/round_trip/test_myst_header.py:115
Functiontest_myst_notebook_is_trusted_941
( tmp_path, cm, myst="""--- jupytext: formats: md:myst text_representation: extension: .md
tests/functional/others/test_trust_notebook.py:176
Functiontest_myst_representation_same_cli_or_contents_manager
This test gives some information on #759. As of Jupytext 1.11.1, in the MyST Markdown format, the code cells have an ipython3 lexer when the noteb
tests/functional/simple_notebooks/test_ipynb_to_myst.py:214
Functiontest_myst_to_ipynb
(myst_file, no_jupytext_version_number)
tests/functional/round_trip/test_mirror.py:113
Functiontest_nbconvert_cell
( script="""# In[2]: print('Hello') """, )
tests/functional/simple_notebooks/test_read_simple_percent.py:184
Functiontest_nbconvert_cell
( script="""# In[2]: print('Hello') """, )
tests/functional/simple_notebooks/test_read_simple_hydrogen.py:167
← previousnext →801–900 of 1,277, ranked by callers