Skip to content

[Linter panic] Linting jupyter notebook #24406

@nikitas-theo

Description

@nikitas-theo
error[panic]: Panicked at crates/ruff_notebook/src/notebook.rs:281:21 when checking `/home/.../notebooks/plotting.ipynb`: `Transformed content out of bounds (6035..6034) for cell at 5`
--> notebooks/plotting.ipynb:1:1
info: This indicates a bug in Ruff.
info: If you could open an issue at https://github.com/astral-sh/ruff/issues/new?title=%5Bpanic%5D, we'd be very appreciative!
info: Backtrace:
   0: <unknown>
   1: <unknown>
   2: <unknown>
   3: <unknown>
   4: <unknown>
   5: <unknown>
   6: <unknown>
   7: <unknown>
   8: <unknown>
   9: <unknown>
  10: <unknown>
  11: <unknown>
  12: <unknown>
  13: <unknown>
  14: <unknown>
  15: start_thread
             at ./nptl/pthread_create.c:447:8
  16: clone3
             at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:78:0
[lint]
select = ["ALL"]
preview = true
ignore = [
    "COM812",   # missing-trailing-comma
    "CPY001",   # Missing copyright notice at top of file
    "D100",     # Missing docstring in public module
    "D104",     # Missing docstring in public package
    "D203",     # blank line required before class docstring
    "D211",     # no-blank-line-before-class
    "D213",     # multi-line-summary-second-line
    "EM101",    # raw-string-in-exception
    "FIX002",   # line-contains-todo
    "ISC001",   # Conflicts with formatter ruff
    "PLR0904",  # Too many public methods (... > 20)
    "TD002",    # Missing author in TODO `# TODO(<author_name>): ...`
    "TD003",    # missing-todo-link
    "PLR0913",  # Too many arguments in function definition (6 > 5)
    "ANN",      # All type annotation?
    "PLR6201",  # Use a set literal when testing for membership
    "S605",     # .system() is unsafe (injection)
    "D413",     # Missing blank line after last section ("Returns")
]
fixable = ["ALL"]
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[project]
name = "project"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.13"

dependencies = [
    "aiohappyeyeballs==2.6.1",
    "aiohttp==3.11.18",
    "aiosignal==1.3.2",
    "annotated-types==0.7.0",
    "asttokens==3.0.0",
    "attrs==25.3.0",
    "bitsandbytes>=0.49.2",
    "certifi==2025.4.26",
    "charset-normalizer==3.4.2",
    "click==8.1.8",
    "datasets==3.6.0",
    "decorator==5.2.1",
    "dill==0.3.8",
    "docker-pycreds==0.4.0",
    "einops==0.8.1",
    "einops-exts==0.0.4",
    "executing==2.2.0",
    "filelock==3.18.0",
    "frozenlist==1.6.0",
    "fsspec==2025.3.0",
    "gitdb==4.0.12",
    "gitpython==3.1.44",
    "great-tables[latex]>=0.21.0",
    "hf-xet==1.1.0",
    "huggingface-hub==0.31.0",
    "idna==3.10",
    "ipdb==0.13.13",
    "ipykernel>=7.2.0",
    "ipython==9.2.0",
    "ipython-pygments-lexers==1.1.1",
    "jedi==0.19.2",
    "jinja2==3.1.6",
    "joblib==1.5.0",
    "markupsafe==3.0.2",
    "matplotlib>=3.10.8",
    "matplotlib-inline==0.1.7",
    "minicons>=0.3.36",
    "mpmath==1.3.0",
    "multidict==6.4.3",
    "multiprocess==0.70.16",
    "networkx==3.4.2",
    "nlopt==2.9.1",
    "nltk==3.9.1",
    "numpy==2.2.5",
    "packaging==25.0",
    "pandas==2.2.3",
    "parso==0.8.4",
    "pathlib>=1.0.1",
    "patsy==1.0.1",
    "pexpect==4.9.0",
    "pillow==11.2.1",
    "pip>=26.0.1",
    "platformdirs==4.3.8",
    "playwright>=1.58.0",
    "polars==1.30.0",
    "prompt-toolkit==3.0.51",
    "propcache==0.3.1",
    "protobuf==6.30.2",
    "psutil==7.0.0",
    "ptyprocess==0.7.0",
    "pure-eval==0.2.3",
    "pyarrow==20.0.0",
    "pydantic==2.11.4",
    "pydantic-core==2.33.2",
    "pygments==2.19.1",
    "pyspellchecker==0.8.3",
    "python-dateutil==2.9.0.post0",
    "pytz==2025.2",
    "pyyaml==6.0.2",
    "regex==2024.11.6",
    "requests==2.32.3",
    "safetensors==0.5.3",
    "scikit-learn==1.6.1",
    "scipy==1.15.2",
    "selenium>=4.33.0",
    "sentry-sdk==2.27.0",
    "setproctitle==1.3.6",
    "setuptools==78.1.1",
    "six==1.17.0",
    "smmap==5.0.2",
    "stack-data==0.6.3",
    "statsmodels==0.14.4",
    "sympy==1.14.0",
    "tabulate>=0.10.0",
    "threadpoolctl==3.6.0",
    "tokenizers==0.21.1",
    "torch==2.7.0",
    "tqdm==4.67.1",
    "traitlets==5.14.3",
    "transformers==4.51.3",
    "typing-extensions==4.13.2",
    "typing-inspection==0.4.0",
    "tzdata==2025.2",
    "urllib3==2.4.0",
    "wandb==0.19.11",
    "wcwidth==0.2.13",
    "wheel==0.45.1",
    "xxhash==3.5.0",
    "yarl==1.20.0",
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds-mreNeeds more information for reproduction

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions