MCPcopy Create free account

hub / github.com/jupytext/jupytext / functions

Functions1,277 in github.com/jupytext/jupytext

Functiontest_read_simple_file
( text="""println!("Hello world"); eprintln!("Hello error"); format!("Hello {}", "world") // A Function p
tests/functional/simple_notebooks/test_read_simple_rust.py:13
Functiontest_read_simple_file
( script='''# -*- coding: utf-8 -*- """ This is a markdown cell """ 1 + 2 + 3 + 4 5 6 "" 7 ############
tests/functional/simple_notebooks/test_read_simple_sphinx.py:5
Functiontest_read_simple_file
( pynb="""# --- # title: Simple file # --- # Here we have some text # And below we have some python code
tests/functional/simple_notebooks/test_read_simple_python.py:13
Functiontest_read_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:561
Functiontest_read_simple_markdown
( no_jupytext_version_number, ml="""(* %% [markdown] *) (* # Example of an OCaml notebook *) """,
tests/functional/simple_notebooks/test_read_simple_ocaml.py:24
Functiontest_read_simple_r
( ext, text="""# This is a very simple R file # I expect to get three cells here. # # The first one is
tests/functional/simple_notebooks/test_read_simple_R.py:182
Functiontest_read_text_and_combine_with_outputs
(tmpdir, cm)
tests/functional/others/test_combine.py:45
Functiontest_read_write_script
( ext, rnb="""#!/usr/bin/env Rscript # coding=utf-8 print('Hello world') """, )
tests/functional/simple_notebooks/test_read_simple_R.py:135
Functiontest_read_write_script
( pynb="""#!/usr/bin/env python # coding=utf-8 print('Hello world') """, )
tests/functional/simple_notebooks/test_read_simple_python.py:623
Functiontest_read_write_script_with_metadata_241
( no_jupytext_version_number, rsnb="""#!/usr/bin/env scriptisto // --- // jupyter: // jupytext: //
tests/functional/simple_notebooks/test_read_simple_rust.py:64
Functiontest_read_write_script_with_metadata_241
( no_jupytext_version_number, pynb="""#!/usr/bin/env python3 # -*- coding: utf-8 -*- # --- # jupyter:
tests/functional/simple_notebooks/test_read_simple_python.py:634
Functiontest_read_wrong_ext
(tmpdir, nb_file="notebook.ext")
tests/functional/others/test_jupytext_errors.py:8
Functiontest_rearrange_jupytext_metadata
()
tests/unit/test_formats.py:232
Functiontest_rearrange_jupytext_metadata_add_dot_in_suffix
()
tests/unit/test_formats.py:267
Functiontest_rearrange_jupytext_metadata_metadata_filter
()
tests/unit/test_formats.py:246
Functiontest_recusive_update
()
tests/unit/test_header.py:197
Functiontest_reload_notebook_after_jupytext_cli
(python_notebook, cm, tmpdir)
tests/integration/contents_manager/test_contentsmanager.py:497
Functiontest_remove_encoding_907
(tmp_path, python_notebook, cm)
tests/functional/others/test_remove_encoding.py:6
Functiontest_remove_jupytext_metadata
(tmpdir, cwd_tmpdir)
tests/functional/cli/test_cli.py:761
Functiontest_rename
(tmpdir, cm)
tests/integration/contents_manager/test_contentsmanager.py:23
Functiontest_rename_inconsistent_path
(tmpdir, cm)
tests/integration/contents_manager/test_contentsmanager.py:35
Functiontest_replace_issue_numbers_with_links
(input, output)
tests/functional/docs/test_changelog.py:34
Functiontest_rmd_is_ok
(ipynb_file, tmpdir, cm)
tests/functional/others/test_save_multiple.py:15
Functiontest_rmd_notebook_contents_is_unicode
(rmd_file)
tests/functional/others/test_unicode.py:14
Functiontest_rmd_notebooks_are_trusted
Text notebooks don't have outputs, so they are trusted
tests/functional/others/test_trust_notebook.py:27
Functiontest_root_level_metadata_as_raw_cell
( tmpdir, root_level_metadata_as_raw_cell, rmd="""--- author: R Markdown document author title: R
tests/functional/simple_notebooks/test_read_simple_rmd.py:148
Functiontest_root_level_metadata_filters_from_config
(tmpdir)
tests/functional/metadata/test_metadata_filters_from_config.py:54
Functiontest_round_trip_markdown_cell_with_magic
()
tests/functional/simple_notebooks/test_read_simple_python.py:910
Functiontest_round_trip_python_with_js_cell
()
tests/functional/simple_notebooks/test_read_simple_python.py:920
Functiontest_round_trip_python_with_js_cell_no_cell_metadata
()
tests/functional/simple_notebooks/test_read_simple_python.py:938
Functiontest_round_trip_with_null_metadata_792
(tmpdir, cwd_tmpdir, python_notebook)
tests/functional/cli/test_cli.py:1267
Functiontest_rst2md
(tmpdir, cwd_tmpdir)
tests/external/rst2md/test_rst2md.py:11
Functiontest_rst2md_option
(tmpdir)
tests/external/rst2md/test_rst2md.py:49
Functiontest_run_pytest_fail
( tmpdir, capsys, text="""This is a notebook with a test that should not pass ```python def test_f
tests/functional/others/test_pytest.py:21
Functiontest_run_pytest_ok
( tmpdir, text="""This is a notebook with a test that is supposed to pass ```python def test_ok():
tests/functional/others/test_pytest.py:6
Functiontest_runtools_options_to_rmarkdown
Options set by the runtools extension are mapped to the corresponding R Markdown options https://jupyter-contrib-nbextensions.readthedocs.io/en/la
tests/functional/others/test_hide_remove_input_outputs_rmarkdown.py:57
Functiontest_sample_notebooks_are_normalized
(any_nb_file)
tests/functional/others/test_sample_notebooks_are_normalized.py:12
Functiontest_save_file_with_cell_markers
(tmpdir, cm)
tests/integration/contents_manager/test_contentsmanager.py:1466
Functiontest_save_in_auto_extension_global
(ipynb_py_R_jl_file, cm, tmpdir)
tests/integration/contents_manager/test_contentsmanager.py:806
Functiontest_save_in_auto_extension_global_with_format
(ipynb_py_R_jl_file, cm, tmpdir)
tests/integration/contents_manager/test_contentsmanager.py:887
Functiontest_save_in_auto_extension_local
(ipynb_py_R_jl_file, cm, tmpdir)
tests/integration/contents_manager/test_contentsmanager.py:915
Functiontest_save_in_pct_and_lgt_auto_extensions
(ipynb_py_R_jl_file, cm, tmpdir)
tests/integration/contents_manager/test_contentsmanager.py:940
Functiontest_save_ipynb_with_jupytext_has_final_newline
(tmpdir)
tests/functional/simple_notebooks/test_read_simple_ipynb.py:8
Functiontest_save_load_paired_md_notebook
(ipynb_py_R_jl_file, cm, tmpdir)
tests/integration/contents_manager/test_contentsmanager.py:150
Functiontest_save_load_paired_md_pandoc_notebook
(ipynb_py_R_jl_file, tmpdir, cm)
tests/external/contents_manager/test_contentsmanager_external.py:13
Functiontest_save_load_paired_qmd_notebook
(ipynb_py_R_jl_file, tmpdir, cm)
tests/external/contents_manager/test_contentsmanager_external.py:33
Functiontest_save_to_light_percent_sphinx_format
(ipynb_py_file, cm, tmpdir)
tests/integration/contents_manager/test_contentsmanager.py:680
Functiontest_save_to_percent_format
(ipynb_julia_file, cm, tmpdir)
tests/integration/contents_manager/test_contentsmanager.py:551
Functiontest_save_using_preferred_and_default_format
(config, tmpdir)
tests/functional/cli/test_cli_config.py:97
Functiontest_save_using_preferred_and_default_format_170
(ipynb_py_file, cm, tmpdir)
tests/integration/contents_manager/test_contentsmanager.py:573
Functiontest_script_to_ipynb
(script_to_ipynb, no_jupytext_version_number)
tests/functional/round_trip/test_mirror.py:79
Functiontest_script_with_magics_not_percent
( script="""# %%time 1 + 2""", )
tests/unit/test_formats.py:124
Functiontest_script_with_percent_cell_and_kernelspec
( script="""# --- # jupyter: # kernelspec: # display_name: Python3 # language: python # name
tests/unit/test_formats.py:146
Functiontest_script_with_percent_cell_and_magic_is_hydrogen
( script="""#%% %matplotlib inline """, )
tests/unit/test_formats.py:138
Functiontest_script_with_spyder_cell_is_percent
( script="""#%% 1 + 2""", )
tests/unit/test_formats.py:131
Functiontest_script_with_spyder_cell_with_name_is_percent
( script="""#%% cell name 1 + 2""", )
tests/unit/test_formats.py:162
Functiontest_server_extension_issubclass
(cm)
tests/integration/contents_manager/test_contentsmanager.py:1597
Functiontest_set_auto_ext
()
tests/unit/test_formats.py:329
Functiontest_set_cell_markers_cli
(tmpdir, cwd_tmpdir)
tests/functional/others/test_cell_markers.py:7
Functiontest_set_format_with_subfolder
Here we reproduce issue #450
tests/functional/cli/test_cli.py:897
Functiontest_set_formats
(python_file, tmpdir)
tests/functional/cli/test_cli.py:371
Functiontest_set_formats_does_not_override_existing_ipynb
(tmp_path, notebook_with_outputs, compare_ids, compare_outputs)
tests/functional/cli/test_cli.py:1302
Functiontest_set_formats_pairing_in_subfolders
Test that jupytext --set-formats works with subfolders, including on Windows (#1028)
tests/functional/cli/test_cli.py:1509
Functiontest_set_kernel_auto
(python_file, tmpdir)
tests/functional/cli/test_cli.py:428
Functiontest_set_kernel_inplace
(python_file, tmpdir)
tests/functional/cli/test_cli.py:414
Functiontest_set_kernel_with_name
(python_file, tmpdir)
tests/functional/cli/test_cli.py:443
Functiontest_set_kernel_works_with_pipes_326
(capsys)
tests/functional/cli/test_cli.py:622
Functiontest_set_option_split_at_heading
(tmpdir, cwd_tmpdir)
tests/functional/cli/test_cli.py:954
Functiontest_set_shebang_with_update_metadata
(tmp_path, python_notebook)
tests/functional/cli/test_cli.py:1285
Functiontest_set_then_change_auto_formats
(tmpdir, cm, python_notebook)
tests/integration/contents_manager/test_contentsmanager.py:1247
Functiontest_set_then_change_formats
(tmpdir, cm)
tests/integration/contents_manager/test_contentsmanager.py:1225
Functiontest_set_unset_default_viewers
(settings_file, sample_viewer_config, sample_empty_viewer_config)
tests/unit/test_labconfig.py:41
Functiontest_share_py_recreate_ipynb
(tmpdir, cm, ipynb_py_R_jl_file)
tests/integration/contents_manager/test_contentsmanager.py:1284
Functiontest_show_changes
(tmpdir, cwd_tmpdir, capsys)
tests/functional/cli/test_cli.py:1104
Functiontest_simple_cs
(lang)
tests/functional/simple_notebooks/test_read_simple_csharp.py:8
Functiontest_simple_equations_to_doxygen_and_back
(latex, doxygen)
tests/functional/others/test_doxygen.py:42
Functiontest_simple_hook
(tmpdir)
tests/functional/others/test_read_write_functions.py:11
Functiontest_simple_hook_with_explicit_format
(tmpdir)
tests/functional/others/test_read_write_functions.py:25
Functiontest_simple_metadata
( text='python string="value" number=1.0 array=["a", "b"]', value=("python", {"string": "value", "numb
tests/functional/others/test_cell_metadata.py:140
Functiontest_simple_metadata_with_spaces
( text='python string = "value" number = 1.0 array = ["a", "b"]', value=("python", {"string": "value"
tests/functional/others/test_cell_metadata.py:148
Functiontest_simple_notebook_is_trusted
(tmpdir, python_notebook, cm)
tests/functional/others/test_trust_notebook.py:156
Functiontest_simple_pair
()
tests/unit/test_paired_paths.py:23
Functiontest_simple_py_file_is_not_paired
(tmp_path)
tests/functional/config/test_config.py:223
Functiontest_single_chars
( text="""'This is a single line comment''' 'and another one' # and comments "and line breaks" "and it e
tests/unit/test_stringparser.py:27
Functiontest_single_triple_quote_works
( no_jupytext_version_number, text='''# --- # jupyter: # jupytext: # cell_markers: '"""' # f
tests/functional/simple_notebooks/test_read_simple_percent.py:485
Functiontest_skip_execution
(tmpdir, cwd_tmpdir, tmp_repo, python_notebook, capsys)
tests/external/pre_commit/test_pre_commit_mode.py:248
Functiontest_sphinx_md_to_ipynb
(sphinx_file, no_jupytext_version_number)
tests/external/round_trip/test_mirror_external.py:47
Functiontest_sphinx_to_ipynb
(sphinx_file, no_jupytext_version_number)
tests/external/round_trip/test_mirror_external.py:42
Functiontest_spin_to_ipynb
(r_spin_file, no_jupytext_version_number)
tests/functional/round_trip/test_mirror.py:91
Functiontest_split_at_heading_in_metadata
( markdown="""--- jupyter: jupytext: split_at_heading: true --- A paragraph # H1 Header """, n
tests/functional/simple_notebooks/test_read_simple_markdown.py:230
Functiontest_split_at_heading_option
(tmpdir, cm)
tests/integration/contents_manager/test_contentsmanager.py:1166
Functiontest_split_on_header
( markdown="""A paragraph # H1 Header ## H2 Header Another paragraph """, )
tests/functional/simple_notebooks/test_read_simple_markdown.py:197
Functiontest_split_on_header_after_two_blank_lines
( markdown="""A paragraph # H1 Header """, )
tests/functional/simple_notebooks/test_read_simple_markdown.py:217
Functiontest_str2bool
()
tests/functional/cli/test_cli.py:26
Functiontest_strict_raise_on_blank_line_removed
()
tests/unit/test_compare.py:179
Functiontest_string_to_dict_conversion
(metadata_filter_string, metadata_filter_dict)
tests/functional/metadata/test_metadata_filter.py:32
Functiontest_sync
(ipynb_py_file, tmpdir, cwd_tmpdir, capsys)
tests/functional/cli/test_cli.py:474
Functiontest_sync_config_does_not_create_formats_metadata
(tmpdir, cwd_tmpdir, python_notebook)
tests/functional/cli/test_cli_config.py:160
Functiontest_sync_in_subfolders
Test that jupytext --sync works with subfolders, including on Windows (#1028)
tests/functional/cli/test_cli.py:1523
Functiontest_sync_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/functional/cli/test_cli.py:1461
← previousnext →1,101–1,200 of 1,277, ranked by callers