MCPcopy Create free account

hub / github.com/jupytext/jupytext / functions

Functions1,277 in github.com/jupytext/jupytext

Functiontest_sync_pandoc
(ipynb_to_pandoc, tmpdir, cwd_tmpdir, capsys)
tests/functional/cli/test_cli.py:525
Functiontest_sync_pipe_config
Sync a notebook to a script paired in a tree, and reformat the markdown cells using pandoc
tests/functional/cli/test_cli.py:996
Functiontest_sync_pre_commit_mode_respects_commit_order_780
( tmpdir, cwd_tmpdir, tmp_repo, python_notebook, commit_order, sync_file, )
tests/external/pre_commit/test_pre_commit_mode.py:207
Functiontest_sync_script_dotdot_folder_564
Reproduce the setting of issue #564
tests/functional/cli/test_cli.py:1034
Functiontest_sync_with_pre_commit_hook
(tmpdir)
tests/external/pre_commit/test_pre_commit_scripts.py:64
Functiontest_tags_are_preserved
(notebook_with_tags, fmt_with_cell_metadata)
tests/functional/others/test_cell_tags_are_preserved.py:25
Functiontest_tags_in_rmd
( rmd="""--- jupyter: jupytext: text_representation: extension: .Rmd format_name: rmarkd
tests/functional/simple_notebooks/test_read_simple_rmd.py:104
Functiontest_test_no_text_representation_metadata_in_ipynb_900
(tmpdir, python_notebook, cm)
tests/integration/contents_manager/test_cm_config.py:182
Functiontest_test_round_trip_conversion
()
tests/unit/test_compare.py:234
Functiontest_test_to_ipynb_ignore_version_number_414
( tmpdir, text="""# --- # jupyter: # jupytext: # text_representation: # extension: .py #
tests/functional/cli/test_cli.py:304
Functiontest_text_notebooks_can_be_trusted
(percent_file, tmpdir, no_jupytext_version_number, cm)
tests/functional/others/test_trust_notebook.py:131
Functiontest_text_to_cell_py
()
tests/functional/others/test_cells.py:155
Functiontest_text_to_cell_py2
()
tests/functional/others/test_cells.py:165
Functiontest_text_to_code_cell
()
tests/functional/others/test_cells.py:45
Functiontest_text_to_code_cell_empty_code
()
tests/functional/others/test_cells.py:59
Functiontest_text_to_code_cell_empty_code_no_blank_line
()
tests/functional/others/test_cells.py:72
Functiontest_text_to_markdown_cell
()
tests/functional/others/test_cells.py:85
Functiontest_text_to_markdown_no_blank_line
()
tests/functional/others/test_cells.py:102
Functiontest_text_to_markdown_one_blank_line
()
tests/functional/others/test_cells.py:134
Functiontest_text_to_markdown_two_blank_line
()
tests/functional/others/test_cells.py:118
Functiontest_three_backticks_or_more
()
tests/unit/test_markdown_in_code_cells.py:11
Functiontest_timestamp_is_correct_after_reload_978
Here we reproduce the conditions in Issue #978 and make sure no warning is generated
tests/integration/contents_manager/test_contentsmanager.py:1721
Functiontest_title_and_attribute
(text="This is my title. .class", value=("This is my title.", {".class": None}))
tests/functional/others/test_cell_metadata.py:185
Functiontest_title_and_json_dict
( text='cell title {"string": "value", "number": 1.0, "array": ["a", "b"]}', value=("cell title", {"st
tests/functional/others/test_cell_metadata.py:164
Functiontest_title_and_relax_json
( text="cell title string='value' number=1.0 array=['a', \"b\"]", value=("cell title", {"string": "val
tests/functional/others/test_cell_metadata.py:156
Functiontest_title_no_metadata
(text="title", value=("title", {}))
tests/functional/others/test_cell_metadata.py:135
Functiontest_to_cpluplus
(ipynb_cpp_file, tmpdir, capsys)
tests/functional/cli/test_cli.py:115
Functiontest_triple_backticks_in_code_cell
( no_jupytext_version_number, nb=new_notebook( metadata={"main_language": "python"}, c
tests/unit/test_markdown_in_code_cells.py:20
Functiontest_triple_backticks_in_code_cell_myst
( no_jupytext_version_number, nb=new_notebook( metadata={"jupytext": {"default_lexer": "ipytho
tests/unit/test_markdown_in_code_cells.py:57
Functiontest_try_eval_metadata
()
tests/functional/others/test_cell_metadata.py:103
Functiontest_two_blank_lines_as_cell_separator
()
tests/functional/round_trip/test_rmd_to_ipynb.py:17
Functiontest_two_cells_with_explicit_start
( pynb="""# + # Cell one 1 + 1 1 + 1 # + # Cell two 2 + 2 2 + 2 """, )
tests/functional/simple_notebooks/test_read_simple_python.py:365
Functiontest_two_markdown_cell_with_code_works
( nb=new_notebook( cells=[ new_markdown_cell( """```python 1 + 1 ```""
tests/functional/simple_notebooks/test_read_simple_rmd.py:83
Functiontest_two_markdown_cell_with_code_works
( nb=new_notebook( cells=[ new_markdown_cell( """```python 1 + 1 ```""
tests/functional/simple_notebooks/test_read_simple_markdown.py:693
Functiontest_two_markdown_cell_with_no_language_code_works
( nb=new_notebook( cells=[ new_markdown_cell( """``` 1 + 1 ```"""
tests/functional/simple_notebooks/test_read_simple_markdown.py:714
Functiontest_two_markdown_cells
( markdown="""# A header <!-- #region --> A long markdown cell <!-- #endregion --> """, )
tests/functional/simple_notebooks/test_read_simple_markdown.py:408
Functiontest_two_raw_cells_are_preserved
Test the pattern described at https://github.com/mwouts/jupytext/issues/466
tests/functional/simple_notebooks/test_read_simple_python.py:1120
Functiontest_uncomment
()
tests/unit/test_header.py:14
Functiontest_uncomment
()
tests/functional/others/test_cells.py:32
Functiontest_uncomment_ocaml
()
tests/functional/others/test_cells.py:187
Functiontest_unesc
()
tests/unit/test_escape_magics.py:16
Functiontest_unsupported_key_in_metadata
Notebook metadata that can't be parsed in text notebook cannot go to the text file, but it should still remain available in the ipynb file for pai
tests/functional/others/test_cell_metadata.py:231
Functiontest_unterminated_header
( rmd="""--- title: Unterminated header ```{python} 1+3 ``` some text ```{r} 1+4 ``` ```{python not_te
tests/functional/simple_notebooks/test_read_incomplete_rmd.py:58
Functiontest_update_changelog
()
tests/functional/docs/test_changelog.py:39
Functiontest_update_formats_1386
Test that we can change the formats in an already paired notebook
tests/functional/cli/test_cli.py:1388
Functiontest_update_jupytext_formats_metadata
()
tests/unit/test_formats.py:184
Functiontest_update_metadata
(python_file, tmpdir, capsys)
tests/functional/cli/test_cli.py:382
Functiontest_update_metadata_filter
( no_jupytext_version_number, org="""--- jupyter: kernelspec: display_name: Python 3 languag
tests/functional/simple_notebooks/test_read_simple_markdown.py:796
Functiontest_update_metadata_filter_2
( no_jupytext_version_number, org="""--- jupyter: jupytext: notebook_metadata_filter: -extra k
tests/functional/simple_notebooks/test_read_simple_markdown.py:826
Functiontest_use_source_timestamp
(tmpdir, cwd_tmpdir, python_notebook, capsys, formats, cm)
tests/functional/cli/test_cli.py:1221
Functiontest_utf8_out_331
(capsys, caplog)
tests/integration/cli/test_execute.py:288
Functiontest_validate_one_format
()
tests/unit/test_formats.py:312
Functiontest_values_with_equal_signs_inside
(text='python string="value=5"', value=("python", {"string": "value=5"}))
tests/functional/others/test_cell_metadata.py:190
Functiontest_version_matches_changelog
()
tests/functional/docs/test_changelog.py:47
Functiontest_version_pep440_compliance
()
tests/functional/docs/test_changelog.py:72
Functiontest_vim_folding_markers
(tmpdir, cm)
tests/integration/contents_manager/test_contentsmanager.py:1319
Functiontest_vscode_pycharm_folding_markers
(tmpdir, cm)
tests/integration/contents_manager/test_contentsmanager.py:1374
Functiontest_warn_only_skips_incorrect_notebook
(tmpdir, cwd_tmpdir, capsys)
tests/functional/cli/test_cli.py:833
Functiontest_wildcard
(tmpdir)
tests/functional/cli/test_cli.py:95
Functiontest_wrap_markdown_cell
Use a pre-commit hook to sync a notebook to a script paired in a tree, and reformat the markdown cells using pandoc
tests/external/pre_commit/test_pre_commit_scripts.py:347
Functiontest_write_as_myst
Inspired by https://github.com/mwouts/jupytext/issues/462
tests/unit/test_formats.py:344
Functiontest_write_config
(settings_file, sample_viewer_config)
tests/unit/test_labconfig.py:49
Functiontest_write_non_ascii
(tmpdir)
tests/functional/others/test_unicode.py:21
Functiontest_write_notebook_does_not_change_it
(ipynb_py_R_jl_file, fmt, tmpdir)
tests/functional/others/test_write_does_not_modify_notebook.py:14
Functiontest_write_raises_when_fmt_does_not_exists
Inspired by https://github.com/mwouts/jupytext/issues/462
tests/unit/test_formats.py:357
Functiontest_write_reload_simple_notebook
()
tests/functional/simple_notebooks/test_read_simple_nomarker.py:12
Functiontest_write_simple_gonb_cell_with_double_percent
The cell marker should have the same indentation as the first code line. See issue #562
tests/functional/simple_notebooks/test_read_simple_percent.py:590
Functiontest_write_wrong_ext
(tmpdir, nb_file="notebook.ext")
tests/functional/others/test_jupytext_errors.py:15
Functiontmp_ipynb
(tmpdir)
tests/functional/cli/test_cli.py:158
Functiontmp_py
(tmpdir)
tests/functional/cli/test_cli.py:165
Functiontmp_repo
(tmpdir)
tests/external/conftest.py:6
Methodtrust_notebook
Trust the current notebook
src/jupytext/async_contentsmanager.py:458
Methoduncomment_code_and_magics
(self, lines)
src/jupytext/cell_reader.py:468
Methoduncomment_code_and_magics
(self, lines)
src/jupytext/cell_reader.py:488
Methoduncomment_code_and_magics
(self, lines)
src/jupytext/cell_reader.py:499
Functionupdate_snapshots
()
tests/unit/test_landing_page_notebook.py:46
Functionwrite_pair
Call the function 'write_one_file' on each of the paired path/formats
src/jupytext/async_pairs.py:32
← previous1,201–1,277 of 1,277, ranked by callers