MCPcopy Create free account

hub / github.com/jupytext/jupytext / functions

Functions1,277 in github.com/jupytext/jupytext

Functiontest_nbformat_v3_nbpy_cell
( script="""# <codecell> print('Hello') """, )
tests/functional/simple_notebooks/test_read_simple_percent.py:197
Functiontest_nbformat_v3_nbpy_cell
( script="""# <codecell> print('Hello') """, )
tests/functional/simple_notebooks/test_read_simple_hydrogen.py:180
Functiontest_negative_cell_metadata_filter
()
tests/functional/metadata/test_metadata_filter.py:64
Functiontest_nested_prefix
(tmpdir, cm)
tests/integration/contents_manager/test_contentsmanager.py:1708
Functiontest_new_untitled
(tmpdir, cm)
tests/integration/contents_manager/test_contentsmanager.py:1684
Functiontest_next_instruction_is_function_or_class
()
tests/unit/test_pep8.py:14
Functiontest_no_crash_on_square_bracket
( script="""# %% In [2] print('Hello') """, )
tests/functional/simple_notebooks/test_read_simple_percent.py:174
Functiontest_no_crash_on_square_bracket
( script="""# %% In [2] print('Hello') """, )
tests/functional/simple_notebooks/test_read_simple_hydrogen.py:157
Functiontest_no_encoding_in_python_scripts
No UTF encoding should not be added to Python scripts
tests/functional/others/test_unicode.py:27
Functiontest_no_error_on_path_object
(tmpdir)
tests/functional/others/test_read_write_functions.py:40
Functiontest_no_files_created_on_no_format
(tmpdir, cm)
tests/functional/others/test_save_multiple.py:63
Functiontest_no_language
(text=".class", value=("", {".class": None}))
tests/functional/others/test_cell_metadata.py:125
Functiontest_no_metadata_added_to_scripts_139
(tmpdir, cm)
tests/integration/contents_manager/test_contentsmanager.py:1007
Functiontest_no_metadata_on_multiline_decorator
Applying black on the code of jupytext 1.4.2 turns some pytest parameters into multi-lines ones, and causes a few failures in test_pep8.py:test_no
tests/functional/simple_notebooks/test_read_simple_python.py:1127
Functiontest_no_metadata_when_py_is_pep8
This test assumes that all Python files in the jupytext folder follow PEP8 rules
tests/unit/test_pep8.py:185
Functiontest_no_rmd_on_not_notebook
(tmpdir, cm)
tests/functional/others/test_save_multiple.py:99
Functiontest_no_rmd_on_not_v4
(tmpdir, cm)
tests/functional/others/test_save_multiple.py:111
Functiontest_no_space_after_code
( ext, rnb="""# -*- coding: utf-8 -*- #' Markdown cell f <- function(x) { return(x+1) } #' And a
tests/functional/simple_notebooks/test_read_simple_R.py:101
Functiontest_no_space_after_code
( pynb="""# -*- coding: utf-8 -*- # Markdown cell def f(x): return x+1 # And a new cell, and non asc
tests/functional/simple_notebooks/test_read_simple_python.py:599
Functiontest_noeval_followed_by_code_works
( text="""```python .noeval # Not a code cell in Jupyter ``` ```python 1 + 1 ``` """, expected=new_no
tests/functional/simple_notebooks/test_read_simple_markdown.py:635
Functiontest_non_jupyter_code_is_not_split
()
tests/functional/simple_notebooks/test_read_simple_markdown.py:522
Functiontest_non_language_code_fence
This test reproduces the example from issue #1429
tests/functional/simple_notebooks/test_read_simple_rmd.py:284
Functiontest_non_pep8
( text="""def f(): return 1 def g(): return 2 def h(): return 3 """, ref=new_notebook(
tests/functional/simple_notebooks/test_read_simple_python.py:123
Functiontest_not_installed
()
tests/functional/simple_notebooks/test_ipynb_to_myst.py:139
Functiontest_notebook_blank_lines
( script="""# + # This is a comment # followed by two variables a = 3 b = 4 # - # New cell is a variable
tests/functional/simple_notebooks/test_read_simple_python.py:663
Functiontest_notebook_contents_is_unicode
(ipynb_file)
tests/functional/others/test_unicode.py:7
Functiontest_notebook_ends_with_exactly_one_empty_line_682
(Issue #682) Steps to reproduce: Have a notebook that ends in a python code cell (with no empty lines at the end of the cell). ru
tests/unit/test_pep8.py:198
Functiontest_notebook_extensions
(tmpdir, cm, cwd_tmpdir)
tests/integration/contents_manager/test_contentsmanager.py:1508
Functiontest_notebook_extensions_in_config
(tmpdir, cm, cwd_tmpdir)
tests/integration/contents_manager/test_contentsmanager.py:1527
Functiontest_notebook_from_plain_script_has_metadata_filter
( script="""print('Hello world") """, )
tests/unit/test_header.py:112
Functiontest_notebook_metadata_all
()
tests/functional/metadata/test_metadata_filter.py:86
Functiontest_notebook_metadata_differ
()
tests/unit/test_compare.py:281
Functiontest_notebook_metadata_none
()
tests/functional/metadata/test_metadata_filter.py:97
Functiontest_notebook_no_line_to_next_cell
( nb=new_notebook( cells=[ new_markdown_cell("Markdown cell #1"), new_code
tests/functional/simple_notebooks/test_read_simple_python.py:825
Functiontest_notebook_one_blank_line_before_first_markdown_cell
( script=""" # This is a markdown cell 1 + 1 """, )
tests/functional/simple_notebooks/test_read_simple_python.py:844
Functiontest_notebook_one_blank_line_between_cells
( script="""# + 1 + 1 2 + 2 # + 3 + 3 4 + 4 # + 5 + 5 def g(x): return 6 # + 7 + 7 def h(x):
tests/functional/simple_notebooks/test_read_simple_python.py:750
Functiontest_notebook_remains_trusted_after_jupytext_sync
A trusted notebook should remain trusted after a jupytext --sync edit, e.g. through the jupytext-sync extension in VS Code (#1505)
tests/functional/others/test_trust_notebook.py:214
Functiontest_notebook_runs
The example notebook executes without errors given a minimal sales.csv.
tests/unit/test_landing_page_notebook.py:66
Functiontest_notebook_to_py_marimo
(py_marimo, notebook)
tests/external/test_marimo.py:36
Functiontest_notebook_two_blank_lines_before_next_cell
( script="""# + # This is cell with a function def f(x): return 4 # + # Another cell c = 5 def g(
tests/functional/simple_notebooks/test_read_simple_python.py:714
Functiontest_notebook_with_collapsed_cell
(notebook_with_collapsed_cell, fmt_with_cell_metadata)
tests/functional/others/test_cell_metadata.py:252
Functiontest_notebook_with_empty_cells
(blank_cells)
tests/functional/others/test_preserve_empty_cells.py:20
Functiontest_notebook_with_empty_header_1070
( md="""--- --- This file has empty frontmatter. """, )
tests/functional/simple_notebooks/test_read_simple_markdown.py:924
Functiontest_notebook_with_magic_and_bash_cells
( script="""# This is a test for issue #181 # %load_ext line_profiler # !head -4 data/president_heights.
tests/functional/simple_notebooks/test_read_simple_python.py:805
Functiontest_notebook_with_python3_magic
( no_jupytext_version_number, nb=new_notebook( metadata={ "kernelspec": {
tests/functional/simple_notebooks/test_read_simple_markdown.py:755
Functiontest_one_blank_lines_after_endofcell
( pynb="""# + # This is a code cell with explicit end of cell 1 + 1 2 + 2 # - # This cell is a cell with
tests/functional/simple_notebooks/test_read_simple_python.py:333
Functiontest_only_metadata
(text='key="value"', value=("", {"key": "value"}))
tests/functional/others/test_cell_metadata.py:115
Functiontest_only_metadata_2
(text='key="value"', value=("", {"key": "value"}))
tests/functional/others/test_cell_metadata.py:120
Functiontest_open_file_with_cell_markers
(tmpdir, cm)
tests/integration/contents_manager/test_contentsmanager.py:1429
Functiontest_open_invalid_md_file_fails
(invalid_md_file, tmp_path, cm)
tests/functional/others/test_invalid_file.py:31
Functiontest_open_using_preferred_and_default_format_174
(ipynb_py_file, cm, tmpdir)
tests/integration/contents_manager/test_contentsmanager.py:618
Functiontest_outdated_text_notebook
(python_notebook, cm, tmpdir)
tests/integration/contents_manager/test_contentsmanager.py:387
Functiontest_outdated_text_notebook_diff_is_shown
(tmpdir, cm, python_notebook)
tests/integration/contents_manager/test_contentsmanager.py:448
Functiontest_outdated_text_notebook_no_diff_ok
(tmpdir, cm, python_notebook)
tests/integration/contents_manager/test_contentsmanager.py:422
Functiontest_pair_in_tree
(tmpdir)
tests/functional/cli/test_cli.py:971
Functiontest_pair_in_tree_and_parent
(tmpdir)
tests/functional/cli/test_cli.py:983
Functiontest_pair_notebook_in_another_folder
(tmpdir, cm)
tests/integration/contents_manager/test_contentsmanager.py:1122
Functiontest_pair_notebook_in_dotdot_folder
(tmpdir, cm)
tests/integration/contents_manager/test_contentsmanager.py:1145
Functiontest_pair_notebook_with_dot
(ipynb_py_file, cm, tmpdir)
tests/integration/contents_manager/test_contentsmanager.py:717
Functiontest_pair_plain_script
(percent_file, cm, tmpdir, caplog)
tests/integration/contents_manager/test_contentsmanager.py:167
Functiontest_pair_rmd_file_with_cell_tags_and_options
(tmpdir, cwd_tmpdir, no_jupytext_version_number)
tests/functional/simple_notebooks/test_read_simple_rmd.py:198
Functiontest_pair_unpair_notebook
(tmpdir, cm)
tests/integration/contents_manager/test_contentsmanager.py:56
Functiontest_paired_files_and_symbolic_links
We test that we don't get issues when pairing files into folders that are symbolic links
tests/integration/contents_manager/test_cm_config.py:132
Functiontest_paired_notebook_ipynb_root_scripts_in_folder_806
In this test we pair a notebook with a script in a subfolder, and then do some natural operations like delete/recreate one of the paired files
tests/unit/test_paired_paths.py:281
Functiontest_paired_notebook_with_outputs_is_not_trusted_941
(tmp_path, python_notebook, cm)
tests/functional/others/test_trust_notebook.py:309
Functiontest_paired_path_dotdot_564
(os_path_sep)
tests/unit/test_paired_paths.py:118
Functiontest_paired_path_with_prefix
( nb_file="scripts/test.py", fmt={"extension": ".py", "format_name": "percent"}, formats=[
tests/unit/test_paired_paths.py:264
Functiontest_paired_paths
(ipynb_py_file, tmpdir, capsys)
tests/functional/cli/test_cli.py:459
Functiontest_paired_paths_and_adjusted_fmt
(path, input_fmt, adjusted_fmt)
tests/unit/test_paired_paths.py:339
Functiontest_paired_paths_from_config
(tmp_path, python_notebook, capsys)
tests/functional/cli/test_cli.py:1443
Functiontest_paired_paths_from_notebook_metadata
(tmp_path, python_notebook, capsys)
tests/functional/cli/test_cli.py:1426
Functiontest_paired_paths_windows
()
tests/unit/test_paired_paths.py:86
Functiontest_paired_paths_windows_no_subfolder
()
tests/unit/test_paired_paths.py:94
Functiontest_paired_paths_windows_relative
Test Windows pairing with relative paths and backslash as path separator, issue #1028
tests/unit/test_paired_paths.py:102
Functiontest_pairing_groups
Test list-based formats for subset-specific pairing
tests/functional/config/test_config.py:237
Functiontest_pairing_groups_in_contents_manager
(tmp_path, cm, python_notebook)
tests/integration/contents_manager/test_contentsmanager.py:2027
Functiontest_pairing_groups_multiple_groups
Test multiple format sets with list-based formats
tests/functional/config/test_config.py:271
Functiontest_pairing_through_config_leaves_ipynb_unmodified
(tmpdir, cm)
tests/integration/contents_manager/test_cm_config.py:59
Functiontest_pairing_through_config_leaves_ipynb_unmodified
(tmpdir)
tests/functional/cli/test_cli_config.py:11
Functiontest_pandoc_explicit
( markdown="""::: {#cell_id .cell .markdown} # Lorem **Lorem ipsum** dolor sit amet, consectetur adipisci
tests/external/simple_external_notebooks/test_read_simple_pandoc.py:34
Functiontest_pandoc_format_is_preserved
()
tests/unit/test_formats.py:335
Functiontest_pandoc_implicit
( cell_id, markdown="""# Lorem ipsum **Lorem ipsum** dolor sit amet, consectetur adipiscing elit. Nun
tests/external/simple_external_notebooks/test_read_simple_pandoc.py:11
Functiontest_pandoc_utf8_in_md
( markdown="""::: {#cell_id .cell .markdown} # Utf-8 support This is the greek letter $\\pi$: π :::""", )
tests/external/simple_external_notebooks/test_read_simple_pandoc.py:49
Functiontest_pandoc_utf8_in_nb
( nb=new_notebook( cells=[ new_markdown_cell( """# Utf-8 support This
tests/external/simple_external_notebooks/test_read_simple_pandoc.py:63
Functiontest_paragraph_is_fully_commented
(lines)
tests/functional/others/test_cells.py:24
Functiontest_paragraph_is_not_fully_commented
(lines="# text\nnot fully commented out")
tests/functional/others/test_cells.py:28
Functiontest_parse_double_hyphen_metadata
()
tests/functional/simple_notebooks/test_read_dotnet_try_markdown.py:12
Functiontest_parse_key_value
()
tests/functional/others/test_cell_metadata.py:205
Functiontest_parse_key_value_key
()
tests/functional/others/test_cell_metadata.py:212
Functiontest_parse_metadata
()
tests/functional/simple_notebooks/test_read_dotnet_try_markdown.py:6
Functiontest_parse_rmd_options
(options, language, metadata)
tests/functional/others/test_cell_metadata.py:67
Functiontest_parsing_error
(options)
tests/functional/others/test_cell_metadata.py:88
Functiontest_path_in_tree_limited_to_config_dir
(tmpdir)
tests/unit/test_paired_paths.py:128
Functiontest_pep8
()
tests/unit/test_pep8.py:125
Functiontest_pep8_bis
()
tests/unit/test_pep8.py:166
Functiontest_pep8_lines_between_cells
()
tests/unit/test_pep8.py:64
Functiontest_pep8_lines_between_cells_bis
()
tests/unit/test_pep8.py:76
Functiontest_pep8_lines_between_cells_ter
()
tests/unit/test_pep8.py:101
Functiontest_percent_to_ipynb
(percent_file, no_jupytext_version_number)
tests/functional/round_trip/test_mirror.py:83
Functiontest_pipe_black_preserve_outputs
(notebook_with_outputs, tmpdir, cwd_tmpdir, capsys)
tests/external/cli/test_black.py:273
← previousnext →901–1,000 of 1,277, ranked by callers