Official repository for IPython itself. Other repos in the IPython organization contain things like the website, documentation builds, etc.
This report summarizes scanner evidence for ipython/ipython, a Python project with 16,791 GitHub stars. SynthScan examined 99,832 lines of code across 362 source files, recording 2713 pattern matches distributed across 20 syntactic categories. The legacy adjusted pattern signal is 54.4 (High pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 1394 finding(s).
Are imports declared and package/API names verified? 228 finding(s).
Are wrappers, guards, and repeated structures necessary? 2216 finding(s).
Which changes need focused human review? 2713 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 2713 distinct pattern matches across 20 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | setupbase.py | 29 | #------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | setupbase.py | 31 | #------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | setupbase.py | 41 | #--------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | setupbase.py | 43 | #--------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | setupbase.py | 56 | #--------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | setupbase.py | 58 | #--------------------------------------------------------------------------- | COMMENT |
| MEDIUM | setupbase.py | 85 | #--------------------------------------------------------------------------- | COMMENT |
| MEDIUM | setupbase.py | 87 | #--------------------------------------------------------------------------- | COMMENT |
| MEDIUM | setupbase.py | 151 | #--------------------------------------------------------------------------- | COMMENT |
| MEDIUM | setupbase.py | 153 | #--------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | setup.py | 8 | #----------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | setup.py | 17 | #----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | setup.py | 56 | #------------------------------------------------------------------------------- | STRING |
| MEDIUM | setup.py | 58 | #------------------------------------------------------------------------------- | STRING |
| MEDIUM⚡ | setup.py | 76 | #--------------------------------------------------------------------------- | STRING |
| MEDIUM⚡ | setup.py | 78 | #--------------------------------------------------------------------------- | STRING |
| MEDIUM⚡ | setup.py | 84 | #--------------------------------------------------------------------------- | STRING |
| MEDIUM⚡ | setup.py | 86 | #--------------------------------------------------------------------------- | STRING |
| MEDIUM⚡ | setup.py | 96 | #--------------------------------------------------------------------------- | STRING |
| MEDIUM⚡ | setup.py | 98 | #--------------------------------------------------------------------------- | STRING |
| MEDIUM⚡ | IPython/__init__.py | 7 | #----------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | IPython/__init__.py | 16 | #----------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | IPython/__init__.py | 18 | #----------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | IPython/__init__.py | 20 | #----------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | IPython/__init__.py | 26 | #----------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | IPython/__init__.py | 28 | #----------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | IPython/display.py | 3 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | IPython/display.py | 8 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | IPython/display.py | 10 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | IPython/display.py | 12 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | IPython/__main__.py | 3 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | IPython/__main__.py | 9 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | IPython/core/prefilter.py | 29 | #----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | IPython/core/prefilter.py | 31 | #----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | IPython/core/prefilter.py | 72 | #----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | IPython/core/prefilter.py | 74 | #----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | IPython/core/prefilter.py | 126 | #------------------------------------------------------------------------- | COMMENT |
| MEDIUM | IPython/core/prefilter.py | 128 | #------------------------------------------------------------------------- | COMMENT |
| MEDIUM | IPython/core/prefilter.py | 154 | #------------------------------------------------------------------------- | COMMENT |
| MEDIUM | IPython/core/prefilter.py | 156 | #------------------------------------------------------------------------- | COMMENT |
| MEDIUM | IPython/core/prefilter.py | 190 | #------------------------------------------------------------------------- | COMMENT |
| MEDIUM | IPython/core/prefilter.py | 192 | #------------------------------------------------------------------------- | COMMENT |
| MEDIUM | IPython/core/prefilter.py | 233 | #------------------------------------------------------------------------- | COMMENT |
| MEDIUM | IPython/core/prefilter.py | 235 | #------------------------------------------------------------------------- | COMMENT |
| MEDIUM | IPython/core/prefilter.py | 330 | #----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | IPython/core/prefilter.py | 332 | #----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | IPython/core/prefilter.py | 360 | #----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | IPython/core/prefilter.py | 362 | #----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | IPython/core/prefilter.py | 524 | #----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | IPython/core/prefilter.py | 526 | #----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | IPython/core/prefilter.py | 685 | #----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | IPython/core/prefilter.py | 687 | #----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | IPython/core/magic.py | 5 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | IPython/core/magic.py | 12 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | IPython/core/magic.py | 40 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | IPython/core/magic.py | 42 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | IPython/core/magic.py | 68 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | IPython/core/magic.py | 70 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | IPython/core/magic.py | 102 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | IPython/core/magic.py | 104 | # ----------------------------------------------------------------------------- | COMMENT |
| 686 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | conftest.py | 7 | def stop_script_magics_event_loop(): | CODE |
| LOW | IPython/core/profiledir.py | 181 | def create_profile_dir_by_name(cls, path, name='default', config=None): | CODE |
| LOW | IPython/core/formatters.py | 736 | def _singleton_printers_default(self): | STRING |
| LOW | IPython/core/formatters.py | 751 | def _deferred_printers_default(self): | STRING |
| LOW | IPython/core/inputtransformer2.py | 254 | def find_end_of_continued_line(lines, start_line: int): | STRING |
| LOW | IPython/core/tbtools.py | 221 | def _simple_format_traceback_lines( | CODE |
| LOW | IPython/core/tbtools.py | 346 | def variables_in_executing_piece(self) -> list[Any]: | CODE |
| LOW | IPython/core/tbtools.py | 491 | def get_parts_of_chained_exception( | CODE |
| LOW | IPython/core/tbtools.py | 504 | def prepare_chained_exception_message( | CODE |
| LOW | IPython/core/guarded_eval.py | 155 | def _has_original_dunder_external( | CODE |
| LOW | IPython/core/guarded_eval.py | 505 | def _ipython_key_completions_(self): | CODE |
| LOW | IPython/core/guarded_eval.py | 518 | def _validate_policy_overrides( | CODE |
| LOW | IPython/core/guarded_eval.py | 703 | def _is_instance_attribute_assignment( | CODE |
| LOW | IPython/core/guarded_eval.py | 716 | def _get_coroutine_attributes() -> dict[str, object | None]: | CODE |
| LOW | IPython/core/guarded_eval.py | 1444 | def _create_duck_for_heap_type(duck_type): | CODE |
| LOW | IPython/core/doctb.py | 291 | def format_exception_as_a_whole( | CODE |
| LOW⚡ | IPython/core/completer.py | 2679 | def _is_completing_in_system_assignment(self, text: str) -> bool: | CODE |
| LOW | IPython/core/completer.py | 1471 | def _match_number_in_dict_key_prefix(prefix: str) -> str | None: | CODE |
| LOW | IPython/core/completer.py | 1748 | def back_unicode_name_matcher(context: CompletionContext): | CODE |
| LOW | IPython/core/completer.py | 1759 | def back_unicode_name_matches(text: str) -> tuple[str, Sequence[str]]: | CODE |
| LOW | IPython/core/completer.py | 2611 | def _determine_completion_context(self, line): | CODE |
| LOW | IPython/core/completer.py | 2642 | def _is_completing_in_cli_context(self, text: str) -> bool: | CODE |
| LOW | IPython/core/completer.py | 2861 | def _default_arguments_from_docstring(self, doc): | CODE |
| LOW | IPython/core/completer.py | 1079 | def _policy_overrides_changed(self, _change): | STRING |
| LOW | IPython/core/completer.py | 1235 | def _strip_code_before_operator(self, code: str) -> str: | STRING |
| LOW | IPython/core/completer.py | 3245 | def dispatch_custom_completer(self, text: str) -> list[str] | None: | STRING |
| LOW | IPython/core/ultratb.py | 422 | def structured_traceback_doctest( | CODE |
| LOW | IPython/core/ultratb.py | 796 | def format_exception_as_a_whole( | CODE |
| LOW | IPython/core/debugger.py | 649 | def _pdbcmd_print_frame_status(self, arg): | CODE |
| LOW | IPython/core/debugger.py | 1134 | def _is_in_decorator_internal_and_should_skip(self, frame): | CODE |
| LOW | IPython/core/debugger.py | 1145 | def _cached_one_parent_frame_debuggerskip(self, frame): | CODE |
| LOW | IPython/core/application.py | 150 | def _config_file_name_default(self): | CODE |
| LOW | IPython/core/application.py | 153 | def _config_file_name_changed(self, change): | CODE |
| LOW | IPython/core/application.py | 164 | def _config_file_paths_default(self): | CODE |
| LOW | IPython/core/application.py | 172 | def _extra_config_file_changed(self, change): | STRING |
| LOW | IPython/core/application.py | 476 | def stage_default_config_file(self): | CODE |
| LOW | IPython/core/extensions.py | 126 | def _call_load_ipython_extension(self, mod): | CODE |
| LOW | IPython/core/extensions.py | 131 | def _call_unload_ipython_extension(self, mod): | CODE |
| LOW | IPython/core/displaypub.py | 67 | def _setup_execution_tracking(self): | CODE |
| LOW | IPython/core/pylabtools.py | 443 | def _matplotlib_manages_backends() -> bool: | CODE |
| LOW | IPython/core/pylabtools.py | 469 | def _list_matplotlib_backends_and_gui_loops() -> list[str]: | CODE |
| LOW | IPython/core/pylabtools.py | 491 | def _convert_gui_to_matplotlib(gui: str | None) -> str | None: | CODE |
| LOW | IPython/core/pylabtools.py | 497 | def _convert_gui_from_matplotlib(gui: str | None) -> str | None: | CODE |
| LOW | IPython/core/interactiveshell.py | 3541 | def _format_exception_for_storage( | CODE |
| LOW | IPython/core/interactiveshell.py | 464 | def _sphinxify_docstring_changed(self, change): | STRING |
| LOW | IPython/core/interactiveshell.py | 475 | def _enable_html_pager_changed(self, change): | STRING |
| LOW | IPython/core/interactiveshell.py | 498 | def input_transformers_cleanup(self): | STRING |
| LOW | IPython/core/oinspect.py | 1074 | def _source_contains_docstring(src, doc): | CODE |
| LOW | IPython/core/profileapp.py | 215 | def _copy_config_files_default(self): | CODE |
| LOW | IPython/core/profileapp.py | 288 | def stage_default_config_file(self): | CODE |
| LOW | IPython/core/displayhook.py | 98 | def semicolon_at_end_of_expression(expression): | CODE |
| LOW | IPython/core/magic_arguments.py | 105 | def _format_action_invocation(self, action): | CODE |
| LOW | IPython/core/history.py | 820 | def _switch_to_memory_history(self) -> None: | CODE |
| LOW | IPython/core/history.py | 860 | def _restart_thread_if_stopped(self) -> None: | CODE |
| LOW | IPython/core/history.py | 329 | def _default_connection_options(self) -> dict[str, bool]: | STRING |
| LOW | IPython/core/magics/basic.py | 705 | def _get_kernel_language_info(self) -> dict | None: | CODE |
| LOW | IPython/core/magics/packaging.py | 36 | def _get_conda_like_executable(command): | CODE |
| LOW | IPython/sphinxext/tests/test_ansi_stripping.py | 14 | def test_strip_ansi_multiple_codes(): | CODE |
| LOW | IPython/terminal/ptutils.py | 94 | def _adjust_completion_text_based_on_context(text, body, offset): | CODE |
| LOW | IPython/terminal/prompts.py | 56 | def continuation_prompt_tokens( | CODE |
| 1056 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | setupbase.py | 202 | except FileNotFoundError: | CODE |
| HIGH | tools/fixup_whats_new_pr.py | 30 | except IndexError: | CODE |
| HIGH | IPython/core/async_helpers.py | 46 | except RuntimeError: | CODE |
| HIGH | IPython/core/prefilter.py | 218 | except KeyError: | CODE |
| HIGH | IPython/core/completerlib.py | 132 | except ValueError: | CODE |
| HIGH | IPython/core/alias.py | 144 | except KeyError: | CODE |
| HIGH | IPython/core/formatters.py | 398 | except KeyError: | CODE |
| HIGH | IPython/core/formatters.py | 975 | except KeyError: | CODE |
| HIGH | IPython/core/formatters.py | 1027 | except KeyError: | CODE |
| HIGH | IPython/core/inputtransformer2.py | 671 | except tokenize.TokenError: | CODE |
| HIGH | IPython/core/inputtransformer2.py | 750 | except SyntaxError: | CODE |
| HIGH | IPython/core/guarded_eval.py | 1454 | except TypeError: | CODE |
| HIGH | IPython/core/guarded_eval.py | 1094 | except Exception: | CODE |
| HIGH | IPython/core/guarded_eval.py | 1193 | except Exception as e: | CODE |
| HIGH | IPython/core/guarded_eval.py | 892 | except Exception: | CODE |
| HIGH | IPython/core/guarded_eval.py | 1242 | except Exception: | CODE |
| HIGH | IPython/core/guarded_eval.py | 1185 | except Exception as e: | CODE |
| HIGH | IPython/core/guarded_eval.py | 641 | except Exception: | CODE |
| HIGH | IPython/core/guarded_eval.py | 1191 | except Exception as e: | CODE |
| HIGH | IPython/core/page.py | 257 | except TryNext: | CODE |
| HIGH | IPython/core/doctb.py | 310 | except AttributeError: | CODE |
| HIGH | IPython/core/completer.py | 1798 | except KeyError: | CODE |
| HIGH | IPython/core/completer.py | 1837 | except KeyError: | CODE |
| HIGH | IPython/core/completer.py | 1293 | except tokenize.TokenError: | CODE |
| HIGH | IPython/core/completer.py | 1316 | except TryNext: | CODE |
| HIGH | IPython/core/completer.py | 1320 | except Exception: | CODE |
| HIGH | IPython/core/completer.py | 2916 | except ValueError: | CODE |
| HIGH | IPython/core/completer.py | 3004 | except Exception: | CODE |
| HIGH | IPython/core/completer.py | 3365 | except KeyboardInterrupt: | CODE |
| HIGH | IPython/core/completer.py | 2574 | except StopIteration: | CODE |
| HIGH | IPython/core/completer.py | 2672 | except (AttributeError, KeyError): | CODE |
| HIGH | IPython/core/completer.py | 3188 | except KeyError: | CODE |
| HIGH | IPython/core/completer.py | 3286 | except TryNext: | CODE |
| HIGH | IPython/core/completer.py | 3883 | except ValueError: | CODE |
| HIGH | IPython/core/completer.py | 3868 | except ValueError: | CODE |
| HIGH | IPython/core/ultratb.py | 817 | except AttributeError: | CODE |
| HIGH | IPython/core/debugger.py | 634 | except KeyboardInterrupt: | CODE |
| HIGH | IPython/core/debugger.py | 881 | except KeyboardInterrupt: | CODE |
| HIGH | IPython/core/debugger.py | 1156 | except KeyError: | CODE |
| HIGH | IPython/core/debugger.py | 1178 | except KeyError: | CODE |
| HIGH | IPython/core/application.py | 177 | except ValueError: | CODE |
| HIGH | IPython/core/pylabtools.py | 231 | except AttributeError: | CODE |
| HIGH | IPython/core/interactiveshell.py | 167 | except AttributeError: | CODE |
| HIGH | IPython/core/interactiveshell.py | 171 | except (AttributeError, TypeError): | CODE |
| HIGH | IPython/core/interactiveshell.py | 1049 | except AttributeError: | CODE |
| HIGH | IPython/core/interactiveshell.py | 3996 | except ValueError: | CODE |
| HIGH | IPython/core/interactiveshell.py | 4008 | except Exception: | CODE |
| HIGH | IPython/core/interactiveshell.py | 4133 | except OSError: | CODE |
| HIGH | IPython/core/interactiveshell.py | 1889 | except AttributeError: | CODE |
| HIGH | IPython/core/interactiveshell.py | 2335 | except AttributeError: | CODE |
| HIGH | IPython/core/interactiveshell.py | 4207 | except FileNotFoundError: | CODE |
| HIGH | IPython/core/interactiveshell.py | 4216 | except FileNotFoundError: | CODE |
| HIGH | IPython/core/interactiveshell.py | 1584 | except KeyError: | CODE |
| HIGH | IPython/core/interactiveshell.py | 3320 | except: | CODE |
| HIGH | IPython/core/interactiveshell.py | 3559 | except AttributeError: | CODE |
| HIGH | IPython/core/oinspect.py | 204 | except Exception: | CODE |
| HIGH | IPython/core/oinspect.py | 327 | except OSError: | CODE |
| HIGH | IPython/core/oinspect.py | 924 | except AttributeError: | CODE |
| HIGH | IPython/core/oinspect.py | 946 | except Exception: | CODE |
| HIGH | IPython/core/oinspect.py | 324 | except (OSError, TypeError): | CODE |
| 91 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | setupbase.py | 20 | CODE | |
| LOW | setupbase.py | 22 | CODE | |
| LOW | setupbase.py | 25 | CODE | |
| LOW | setupbase.py | 26 | CODE | |
| LOW | setup.py | 19 | CODE | |
| LOW | _build_meta.py | 2 | CODE | |
| LOW | tools/importtime_average.py | 35 | CODE | |
| LOW | tools/tests/embed/embed_flufl.py | 2 | CODE | |
| LOW | IPython/paths.py | 3 | CODE | |
| LOW | IPython/__init__.py | 22 | CODE | |
| LOW | IPython/__init__.py | 64 | CODE | |
| LOW | IPython/__init__.py | 65 | CODE | |
| LOW | IPython/display.py | 14 | CODE | |
| LOW | IPython/display.py | 15 | CODE | |
| LOW | IPython/display.py | 15 | CODE | |
| LOW | IPython/display.py | 15 | CODE | |
| LOW | IPython/display.py | 15 | CODE | |
| LOW | IPython/display.py | 15 | CODE | |
| LOW | IPython/display.py | 15 | CODE | |
| LOW | IPython/display.py | 15 | CODE | |
| LOW | IPython/display.py | 15 | CODE | |
| LOW | IPython/display.py | 15 | CODE | |
| LOW | IPython/display.py | 15 | CODE | |
| LOW | IPython/display.py | 15 | CODE | |
| LOW | IPython/display.py | 15 | CODE | |
| LOW | IPython/display.py | 15 | CODE | |
| LOW | IPython/display.py | 15 | CODE | |
| LOW | IPython/display.py | 15 | CODE | |
| LOW | IPython/display.py | 15 | CODE | |
| LOW | IPython/display.py | 15 | CODE | |
| LOW | IPython/display.py | 15 | CODE | |
| LOW | IPython/display.py | 15 | CODE | |
| LOW | IPython/display.py | 15 | CODE | |
| LOW | IPython/display.py | 15 | CODE | |
| LOW | IPython/display.py | 15 | CODE | |
| LOW | IPython/display.py | 15 | CODE | |
| LOW | IPython/display.py | 15 | CODE | |
| LOW | IPython/display.py | 41 | CODE | |
| LOW | IPython/core/async_helpers.py | 13 | CODE | |
| LOW | IPython/core/magic.py | 1 | CODE | |
| LOW | IPython/core/magic.py | 27 | CODE | |
| LOW | IPython/core/hooks.py | 38 | CODE | |
| LOW | IPython/core/alias.py | 9 | CODE | |
| LOW | IPython/core/tbtools.py | 1 | CODE | |
| LOW | IPython/core/events.py | 16 | CODE | |
| LOW | IPython/core/splitinput.py | 15 | CODE | |
| LOW | IPython/core/doctb.py | 1 | CODE | |
| LOW | IPython/core/shellapp.py | 9 | CODE | |
| LOW | IPython/core/logger.py | 12 | CODE | |
| LOW | IPython/core/logger.py | 19 | CODE | |
| LOW | IPython/core/completer.py | 180 | CODE | |
| LOW | IPython/core/ultratb.py | 61 | CODE | |
| LOW | IPython/core/display.py | 6 | CODE | |
| LOW | IPython/core/display.py | 9 | CODE | |
| LOW | IPython/core/display.py | 19 | CODE | |
| LOW | IPython/core/debugger.py | 124 | CODE | |
| LOW | IPython/core/tips.py | 1 | CODE | |
| LOW | IPython/core/extensions.py | 6 | CODE | |
| LOW | IPython/core/extensions.py | 7 | CODE | |
| LOW | IPython/core/extensions.py | 12 | CODE | |
| 153 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/update_whatsnew.py | 45 | except Exception as e: | CODE |
| LOW | IPython/core/prefilter.py | 625 | except Exception: | CODE |
| LOW | IPython/core/magic.py | 603 | except Exception: | CODE |
| MEDIUM | IPython/core/magic.py | 849 | print("Error in arguments:") | CODE |
| LOW | IPython/core/completerlib.py | 93 | except Exception: | CODE |
| LOW⚡ | IPython/core/formatters.py | 265 | except Exception as e: | CODE |
| LOW | IPython/core/formatters.py | 282 | except Exception: | CODE |
| LOW | IPython/core/formatters.py | 708 | except Exception as e: | STRING |
| MEDIUM | IPython/core/formatters.py | 276 | def wrapper(self, *args, **kwargs): | CODE |
| LOW | IPython/core/tbtools.py | 66 | except Exception: | CODE |
| LOW⚡ | IPython/core/tbtools.py | 137 | except Exception: | CODE |
| LOW⚡ | IPython/core/tbtools.py | 142 | except Exception: | CODE |
| LOW | IPython/core/tbtools.py | 156 | except Exception: | CODE |
| LOW⚡ | IPython/core/guarded_eval.py | 1185 | except Exception as e: | CODE |
| LOW⚡ | IPython/core/guarded_eval.py | 1191 | except Exception as e: | CODE |
| LOW⚡ | IPython/core/guarded_eval.py | 1193 | except Exception as e: | CODE |
| LOW | IPython/core/guarded_eval.py | 641 | except Exception: | CODE |
| LOW | IPython/core/guarded_eval.py | 872 | except Exception: | CODE |
| LOW | IPython/core/guarded_eval.py | 880 | except Exception: | CODE |
| LOW | IPython/core/guarded_eval.py | 892 | except Exception: | CODE |
| LOW | IPython/core/guarded_eval.py | 1094 | except Exception: | CODE |
| LOW | IPython/core/guarded_eval.py | 1242 | except Exception: | CODE |
| LOW | IPython/core/page.py | 276 | except Exception: | CODE |
| LOW | IPython/core/page.py | 281 | except Exception: | CODE |
| LOW | IPython/core/doctb.py | 224 | except Exception: | CODE |
| LOW | IPython/core/doctb.py | 270 | except Exception: | CODE |
| MEDIUM | IPython/core/shellapp.py | 386 | def _exec_file(self, fname, shell_futures=False): | CODE |
| LOW | IPython/core/shellapp.py | 302 | except Exception: | CODE |
| LOW | IPython/core/shellapp.py | 333 | except Exception: | CODE |
| LOW | IPython/core/shellapp.py | 342 | except Exception: | CODE |
| LOW | IPython/core/shellapp.py | 378 | except Exception: | CODE |
| LOW | IPython/core/shellapp.py | 382 | except Exception: | CODE |
| LOW | IPython/core/shellapp.py | 429 | except Exception: | CODE |
| LOW | IPython/core/shellapp.py | 442 | except Exception: | CODE |
| LOW | IPython/core/shellapp.py | 455 | except Exception: | CODE |
| LOW | IPython/core/shellapp.py | 467 | except Exception: | CODE |
| LOW | IPython/core/shellapp.py | 485 | except Exception: | CODE |
| MEDIUM⚡ | IPython/core/completer.py | 2588 | print("Error detecting if completing a non-finished string :", e, '|') | CODE |
| LOW⚡ | IPython/core/completer.py | 2585 | except Exception as e: | CODE |
| LOW⚡ | IPython/core/completer.py | 2594 | except Exception as e: | CODE |
| LOW⚡ | IPython/core/completer.py | 2676 | except Exception: | CODE |
| LOW⚡ | IPython/core/completer.py | 2683 | except Exception: | CODE |
| LOW | IPython/core/completer.py | 1320 | except Exception: | CODE |
| LOW | IPython/core/completer.py | 1416 | except Exception as e: | CODE |
| LOW | IPython/core/completer.py | 1437 | except Exception: | CODE |
| LOW | IPython/core/completer.py | 1605 | except Exception: | CODE |
| MEDIUM | IPython/core/completer.py | 3438 | print("Error in Jedi getting type of ", jm) | STRING |
| LOW | IPython/core/completer.py | 1194 | except Exception as e: | STRING |
| LOW | IPython/core/completer.py | 3004 | except Exception: | STRING |
| LOW | IPython/core/completer.py | 3021 | except Exception: | STRING |
| LOW | IPython/core/completer.py | 3026 | except Exception: | STRING |
| LOW | IPython/core/completer.py | 3436 | except Exception: | STRING |
| LOW | IPython/core/ultratb.py | 483 | except Exception: | CODE |
| LOW | IPython/core/ultratb.py | 655 | except Exception: | CODE |
| LOW | IPython/core/ultratb.py | 770 | except Exception: | CODE |
| LOW⚡ | IPython/core/display.py | 62 | except Exception: | CODE |
| LOW | IPython/core/application.py | 383 | except Exception: | CODE |
| LOW | IPython/core/interactiveshell.py | 835 | except Exception: | CODE |
| LOW | IPython/core/interactiveshell.py | 1661 | except Exception: | CODE |
| LOW | IPython/core/interactiveshell.py | 2283 | except Exception: | CODE |
| 87 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | IPython/paths.py | 19 | CODE | |
| LOW | IPython/core/prefilter.py | 605 | CODE | |
| LOW | IPython/core/magic.py | 507 | CODE | |
| LOW | IPython/core/magic.py | 656 | CODE | |
| LOW | IPython/core/magic.py | 864 | CODE | |
| LOW | IPython/core/formatters.py | 457 | CODE | |
| LOW | IPython/core/formatters.py | 572 | CODE | |
| LOW | IPython/core/inputtransformer2.py | 236 | CODE | |
| LOW | IPython/core/inputtransformer2.py | 636 | CODE | |
| LOW | IPython/core/inputtransformer2.py | 681 | CODE | |
| LOW | IPython/core/inputtransformer2.py | 92 | CODE | |
| LOW | IPython/core/inputtransformer2.py | 131 | CODE | |
| LOW | IPython/core/inputtransformer2.py | 387 | CODE | |
| LOW | IPython/core/tbtools.py | 128 | CODE | |
| LOW | IPython/core/guarded_eval.py | 155 | CODE | |
| LOW | IPython/core/guarded_eval.py | 557 | CODE | |
| LOW | IPython/core/guarded_eval.py | 727 | CODE | |
| LOW | IPython/core/guarded_eval.py | 1168 | CODE | |
| LOW | IPython/core/guarded_eval.py | 1231 | CODE | |
| LOW | IPython/core/guarded_eval.py | 1317 | CODE | |
| LOW | IPython/core/page.py | 123 | CODE | |
| LOW | IPython/core/doctb.py | 339 | CODE | |
| LOW | IPython/core/shellapp.py | 318 | CODE | |
| LOW | IPython/core/shellapp.py | 386 | CODE | |
| LOW | IPython/core/shellapp.py | 459 | CODE | |
| LOW | IPython/core/logger.py | 66 | CODE | |
| LOW | IPython/core/completer.py | 1513 | CODE | |
| LOW | IPython/core/completer.py | 1154 | CODE | |
| LOW | IPython/core/completer.py | 1235 | CODE | |
| LOW | IPython/core/completer.py | 1281 | CODE | |
| LOW | IPython/core/completer.py | 2333 | CODE | |
| LOW | IPython/core/completer.py | 2523 | CODE | |
| LOW | IPython/core/completer.py | 2699 | CODE | |
| LOW | IPython/core/completer.py | 2816 | CODE | |
| LOW | IPython/core/completer.py | 2887 | CODE | |
| LOW | IPython/core/completer.py | 2927 | CODE | |
| LOW | IPython/core/completer.py | 3245 | CODE | |
| LOW | IPython/core/completer.py | 3377 | CODE | |
| LOW | IPython/core/completer.py | 3600 | CODE | |
| LOW | IPython/core/ultratb.py | 295 | CODE | |
| LOW | IPython/core/ultratb.py | 873 | CODE | |
| LOW | IPython/core/ultratb.py | 1154 | CODE | |
| LOW | IPython/core/display.py | 367 | CODE | |
| LOW | IPython/core/display.py | 885 | CODE | |
| LOW | IPython/core/debugger.py | 947 | CODE | |
| LOW | IPython/core/debugger.py | 1228 | CODE | |
| LOW | IPython/core/debugger.py | 1294 | CODE | |
| LOW | IPython/core/debugger.py | 445 | CODE | |
| LOW | IPython/core/application.py | 390 | CODE | |
| LOW | IPython/core/interactiveshell.py | 1498 | CODE | |
| LOW | IPython/core/interactiveshell.py | 1608 | CODE | |
| LOW | IPython/core/interactiveshell.py | 1630 | CODE | |
| LOW | IPython/core/interactiveshell.py | 1700 | CODE | |
| LOW | IPython/core/interactiveshell.py | 1744 | CODE | |
| LOW | IPython/core/interactiveshell.py | 1968 | CODE | |
| LOW | IPython/core/interactiveshell.py | 2219 | CODE | |
| LOW | IPython/core/interactiveshell.py | 2604 | CODE | |
| LOW | IPython/core/interactiveshell.py | 2994 | CODE | |
| LOW | IPython/core/interactiveshell.py | 3069 | CODE | |
| LOW | IPython/core/interactiveshell.py | 3541 | CODE | |
| 82 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | setupbase.py | 48 | # Create a dict with the basic information | COMMENT |
| MEDIUM | tools/gen_latex_symbols.py | 79 | # This file is autogenerated from the file: | COMMENT |
| MEDIUM | IPython/core/magic.py | 331 | # Create the actual decorators for public use | COMMENT |
| MEDIUM | IPython/core/magic.py | 727 | # Create the new method in the user_magics and register it in the | COMMENT |
| MEDIUM | IPython/core/historyapp.py | 76 | # Create the new history database. | STRING |
| MEDIUM | IPython/core/completer.py | 3257 | # Create a little structure to pass all the relevant information about | STRING |
| MEDIUM | IPython/core/debugger.py | 116 | # This file is licensed under the PSF license. | COMMENT |
| MEDIUM⚡ | IPython/core/interactiveshell.py | 1285 | # Create the namespace where the user will operate. user_ns is | COMMENT |
| MEDIUM | IPython/core/latex_symbols.py | 5 | # This file is autogenerated from the file: | COMMENT |
| MEDIUM | IPython/core/magics/script.py | 220 | # Create the event loop in which to run script magics | STRING |
| MEDIUM | IPython/terminal/ipapp.py | 296 | # Create an InteractiveShell instance. | COMMENT |
| MEDIUM | IPython/testing/plugin/ipdoctest.py | 189 | # Create an Example, and add it to the list. | STRING |
| MEDIUM⚡ | tests/test_zzz_autoreload.py | 1038 | # Create a test module with only 'foo' attribute | COMMENT |
| MEDIUM⚡ | tests/test_zzz_autoreload.py | 1047 | # Create a tracker | COMMENT |
| MEDIUM | tests/test_zzz_autoreload.py | 945 | # Create a test module with both 'foo' and 'bar' attributes | COMMENT |
| MEDIUM | tests/test_zzz_autoreload.py | 962 | # Create a tracker | COMMENT |
| MEDIUM | tests/test_zzz_autoreload.py | 993 | # Create a test module | COMMENT |
| MEDIUM | tests/test_zzz_autoreload.py | 1010 | # Create a tracker | COMMENT |
| MEDIUM | tests/test_zzz_autoreload.py | 1072 | # Create a test module | COMMENT |
| MEDIUM | tests/test_zzz_autoreload.py | 1115 | # Create a test module | COMMENT |
| MEDIUM | tests/test_zzz_autoreload.py | 1158 | # Create a tracker | COMMENT |
| MEDIUM | tests/test_zzz_autoreload.py | 1191 | # Create a tracker | COMMENT |
| MEDIUM | tests/test_prefilter.py | 112 | # Create a callable broken object | COMMENT |
| MEDIUM | tests/test_completer.py | 1576 | # Create a subclass in __main__ (untrusted namespace) | COMMENT |
| MEDIUM | tests/test_application.py | 82 | # Create the config file, so it tries to load it. | COMMENT |
| MEDIUM | tests/test_application.py | 108 | # Create the config file, so it tries to load it. | COMMENT |
| MEDIUM | tests/test_history.py | 289 | # Create the on-disk database, then release it so we can lock it below. | COMMENT |
| MEDIUM | tests/test_history.py | 432 | # Create the database file first. | COMMENT |
| MEDIUM | examples/Embedding/embed_class_short.py | 43 | # Define a dummy ipshell() so the same code doesn't crash inside an | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | IPython/core/historyapp.py | 0 | create table if not exists sessions (session integer primary key autoincrement, start timestamp, end timestamp, num_cmds | STRING |
| HIGH | IPython/core/history.py | 0 | create table if not exists sessions (session integer primary key autoincrement, start timestamp, end timestamp, num_cmds | STRING |
| HIGH | tests/test_historyapp.py | 0 | create table if not exists sessions (session integer primary key autoincrement, start timestamp, end timestamp, num_cmds | STRING |
| HIGH | IPython/core/historyapp.py | 0 | create table if not exists history (session integer, line integer, source text, source_raw text, primary key (session, l | STRING |
| HIGH | IPython/core/history.py | 0 | create table if not exists history (session integer, line integer, source text, source_raw text, primary key (session, l | STRING |
| HIGH | tests/test_historyapp.py | 0 | create table if not exists history (session integer, line integer, source text, source_raw text, primary key (session, l | STRING |
| HIGH | IPython/core/historyapp.py | 0 | create table if not exists output_history (session integer, line integer, output text, primary key (session, line)) | STRING |
| HIGH | IPython/core/history.py | 0 | create table if not exists output_history (session integer, line integer, output text, primary key (session, line)) | STRING |
| HIGH | tests/test_historyapp.py | 0 | create table if not exists output_history (session integer, line integer, output text, primary key (session, line)) | STRING |
| HIGH | IPython/terminal/pt_inputhooks/glut.py | 0 | run the wx event loop by processing pending events only. this is like inputhook_wx1, but it keeps processing pending eve | STRING |
| HIGH | IPython/terminal/pt_inputhooks/pyglet.py | 0 | run the wx event loop by processing pending events only. this is like inputhook_wx1, but it keeps processing pending eve | STRING |
| HIGH | IPython/terminal/pt_inputhooks/wx.py | 0 | run the wx event loop by processing pending events only. this is like inputhook_wx1, but it keeps processing pending eve | STRING |
| HIGH | IPython/utils/_process_posix.py | 0 | emscripten-specific implementation of process utilities. this file is only meant to be imported by process.py, not by en | STRING |
| HIGH | IPython/utils/_process_win32.py | 0 | emscripten-specific implementation of process utilities. this file is only meant to be imported by process.py, not by en | STRING |
| HIGH | IPython/utils/_process_emscripten.py | 0 | emscripten-specific implementation of process utilities. this file is only meant to be imported by process.py, not by en | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH⚡ | setup.py | 69 | "cd docs/man && python -m gzip --best ipython.1", | STRING |
| HIGH | IPython/core/displayhook.py | 232 | self.shell.push({'_':self._, | CODE |
| HIGH | IPython/core/displayhook.py | 241 | self.shell.push(to_main, interactive=False) | CODE |
| HIGH | IPython/core/history.py | 1143 | self.shell.push(to_main, interactive=False) | CODE |
| HIGH | IPython/extensions/autoreload.py | 844 | self.shell.push({alias if alias else top_name: top_module}) | STRING |
| HIGH⚡ | tests/test_page.py | 281 | page_mod.pager_page(text, screen_lines=10, pager_cmd="cat > /dev/null; exit 3") | CODE |
| HIGH⚡ | tests/test_interactiveshell.py | 873 | ip.push({"f": f}) | CODE |
| HIGH | tests/test_interactiveshell.py | 258 | ip.push(myvars, interactive=False) | CODE |
| HIGH | tests/test_interactiveshell.py | 891 | ip.push({"f": f}) | CODE |
| HIGH | tests/test_interactiveshell.py | 906 | ip.push({"a": 10}) | CODE |
| HIGH | tests/test_interactiveshell.py | 969 | ip.push({"Integer": Integer}) | CODE |
| HIGH | tests/test_interactiveshell.py | 1000 | ip.push({"f": f}) | CODE |
| HIGH | tests/test_interactiveshell.py | 1018 | ip.push({"f": f}) | CODE |
| HIGH | tests/fake_ext_dir/daft_extension.py | 10 | ip.push(some_vars) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pyproject.toml | 421 | # "C4", # flake8-comprehensions | COMMENT |
| LOW | pyproject.toml | 441 | # "UP006", #182 [*] Use `...` instead of `...` for type annotation | COMMENT |
| LOW | setup.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | tools/configure-git-blame-ignore-revs.sh | 1 | #!/bin/sh | COMMENT |
| LOW | IPython/__init__.py | 1 | # PYTHON_ARGCOMPLETE_OK | COMMENT |
| LOW | IPython/__init__.py | 21 | COMMENT | |
| LOW | IPython/__init__.py | 41 | # - `embed` drags in the whole terminal / prompt_toolkit stack, by far | COMMENT |
| LOW | IPython/__init__.py | 61 | # used from here. | COMMENT |
| LOW | IPython/__main__.py | 1 | # PYTHON_ARGCOMPLETE_OK | COMMENT |
| LOW | IPython/core/prefilter.py | 41 | # RegExp to exclude strings with this start from autocalling. In | COMMENT |
| LOW | IPython/core/completerlib.py | 1 | """Implementations for various useful completers. | COMMENT |
| LOW | IPython/core/completerlib.py | 261 | # 'from xyz import abc<tab>' | COMMENT |
| LOW | IPython/core/release.py | 1 | """Release data for the IPython project.""" | COMMENT |
| LOW | IPython/core/doctb.py | 181 | call = theme_table[self._theme_name].format( | COMMENT |
| LOW | IPython/core/completer.py | 641 | # prone to errors; by explicitly passing `cursor_position` we can decouple the matchers | COMMENT |
| LOW | IPython/core/ultratb.py | 621 | # best we can do is report the failure and move on. Here | COMMENT |
| LOW | IPython/core/tips.py | 21 | # [2/8/25, 23:29:05] Fernando Perez: Which is also archived here: | COMMENT |
| LOW | IPython/core/interactiveshell.py | 1281 | #------------------------------------------------------------------------- | COMMENT |
| LOW | IPython/core/interactiveshell.py | 1301 | # Datum: Freitag 01 Oktober 2004 04:45:34 nachmittags/abends | COMMENT |
| LOW | IPython/core/interactiveshell.py | 1321 | if (user_ns is not None) or (user_module is not None): | COMMENT |
| LOW | IPython/core/interactiveshell.py | 1341 | # To avoid keeping stale modules around (we only need the one from the | COMMENT |
| LOW | IPython/core/interactiveshell.py | 1401 | user_module.__dict__.setdefault('__builtin__', builtin_mod) | COMMENT |
| LOW | IPython/core/interactiveshell.py | 1441 | # user_ns, and we sync that contents into user_ns_hidden so that these | COMMENT |
| LOW | IPython/core/interactiveshell.py | 1881 | # property.__get__(self, None, cls) -> self | COMMENT |
| LOW | IPython/core/displayhook.py | 181 | """ | COMMENT |
| LOW | IPython/core/compilerop.py | 161 | # Save the execution count | COMMENT |
| LOW | IPython/core/magics/logging.py | 1 | """Implementation of magic functions for IPython's own logging. | COMMENT |
| LOW | IPython/core/magics/config.py | 1 | """Implementation of configuration-related magic functions. | COMMENT |
| LOW | IPython/core/magics/pylab.py | 1 | """Implementation of magic functions for matplotlib/pylab support. | COMMENT |
| LOW | IPython/core/magics/code.py | 1 | """Implementation of code management magic functions. | COMMENT |
| LOW | IPython/core/magics/display.py | 1 | """Simple magics for display formats""" | COMMENT |
| LOW | IPython/core/magics/extension.py | 1 | """Implementation of magic functions for the extension machinery. | COMMENT |
| LOW | IPython/core/magics/namespace.py | 1 | """Implementation of namespace-related magic functions. | COMMENT |
| LOW | IPython/core/magics/auto.py | 1 | """Implementation of magic functions that control various automatic behaviors. | COMMENT |
| LOW | IPython/core/magics/history.py | 1 | """Implementation of magic functions related to History. | COMMENT |
| LOW | IPython/sphinxext/ipython_directive.py | 521 | # combined such that '' entries correspond to newlines. So if | COMMENT |
| LOW | IPython/sphinxext/ipython_directive.py | 541 | # tail end, and so this ensures proper spacing as well. E.g.: | COMMENT |
| LOW | IPython/terminal/pt_inputhooks/glut.py | 1 | """GLUT Input hook for interactive use with prompt_toolkit | COMMENT |
| LOW | IPython/terminal/pt_inputhooks/glut.py | 121 | # and switch between a short and long sleep time. Here are some | COMMENT |
| LOW | IPython/terminal/pt_inputhooks/gtk.py | 1 | # Code borrowed from python-prompt-toolkit examples | COMMENT |
| LOW | IPython/terminal/pt_inputhooks/tk.py | 1 | # Code borrowed from ptpython | COMMENT |
| LOW | IPython/terminal/pt_inputhooks/pyglet.py | 41 | window.dispatch_events() | COMMENT |
| LOW | IPython/terminal/pt_inputhooks/wx.py | 121 | ea = wx.EventLoopActivator(evtloop) | COMMENT |
| LOW | IPython/terminal/shortcuts/filters.py | 221 | "never": Never(), | COMMENT |
| LOW | IPython/terminal/shortcuts/filters.py | 241 | # | COMMENT |
| LOW | IPython/utils/module_paths.py | 1 | """Utility functions for finding modules | COMMENT |
| LOW | IPython/utils/_process_posix.py | 101 | enc = DEFAULT_ENCODING | COMMENT |
| LOW | IPython/extensions/autoreload.py | 141 | # Copyright (C) 2008 Pauli Virtanen <pav@iki.fi> | COMMENT |
| LOW | IPython/lib/__init__.py | 1 | """ | COMMENT |
| LOW | tests/test_pycolorize.py | 1 | # coding: utf-8 | COMMENT |
| LOW | tests/test_debug_magic.py | 1 | """Test embedding of IPython""" | COMMENT |
| LOW | tests/test_backgroundjobs.py | 1 | """Tests for pylab tools module.""" | COMMENT |
| LOW | tests/test_async_helpers.py | 81 | # Note, in all conditional cases, I use True instead of | COMMENT |
| LOW | tests/nonascii.py | 1 | # coding: iso-8859-5 | COMMENT |
| LOW | tests/nonascii2.py | 1 | # coding: iso-8859-5 | COMMENT |
| LOW | docs/source/conf.py | 61 | # --------------------- | COMMENT |
| LOW | docs/source/conf.py | 101 | # ----------------------- | COMMENT |
| LOW | examples/Embedding/embed_class_long.py | 81 | COMMENT | |
| LOW | .github/workflows/downstream.yml | 61 | python -m pip install --upgrade --upgrade-strategy eager flaky ipyparallel | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | IPython/__init__.py | 68 | __all__ = ["start_ipython", "embed", "embed_kernel"] | CODE |
| LOW | IPython/core/hooks.py | 51 | __all__ = [ | CODE |
| LOW | IPython/core/tbtools.py | 456 | def _set_ostream(self, val) -> None: # type:ignore[no-untyped-def] | CODE |
| LOW | IPython/core/tbtools.py | 477 | def _set_debugger_cls(self, val) -> None: # type:ignore[no-untyped-def] | CODE |
| LOW | IPython/core/tbtools.py | 525 | def set_theme_name(self, name: str) -> None: | CODE |
| LOW | IPython/core/tbtools.py | 533 | def set_colors(self, name: str) -> None: | CODE |
| LOW | IPython/core/_dunder_ops.py | 16 | __all__ = [ | CODE |
| LOW | IPython/core/guarded_eval.py | 1619 | __all__ = [ | CODE |
| LOW⚡ | IPython/core/display_functions.py | 11 | __all__ = ['display', 'clear_output', 'publish_display_data', 'update_display', 'DisplayHandle'] | CODE |
| LOW | IPython/core/completer.py | 293 | __all__ = ["Completer", "IPCompleter"] | CODE |
| LOW | IPython/core/ultratb.py | 1201 | def set_mode(self, mode: str | None = None) -> None: | CODE |
| LOW | IPython/core/display.py | 26 | __all__ = [ | CODE |
| LOW | IPython/core/interactiveshell.py | 2448 | def set_custom_completer(self, completer, pos=0) -> None: | CODE |
| LOW | IPython/core/oinspect.py | 13 | __all__ = ["Inspector"] | CODE |
| LOW | IPython/core/magic_arguments.py | 310 | __all__ = ['magic_arguments', 'argument', 'argument_group', 'kwds', | CODE |
| LOW | IPython/terminal/shortcuts/__init__.py | 35 | __all__ = ["create_ipython_shortcuts"] | CODE |
| LOW | IPython/terminal/shortcuts/filters.py | 326 | __all__ = ["KEYBINDING_FILTERS", "filter_from_string"] | CODE |
| LOW | IPython/utils/terminal.py | 60 | def _set_term_title(title: str) -> None: | CODE |
| LOW | IPython/utils/terminal.py | 72 | def _set_term_title_xterm(title: str) -> None: | CODE |
| LOW | IPython/utils/terminal.py | 109 | def _set_term_title(title: str) -> None: | CODE |
| LOW | IPython/utils/terminal.py | 114 | def set_term_title(title: str) -> None: | CODE |
| LOW⚡ | IPython/utils/_process_posix.py | 20 | __all__ = ["getoutput", "arg_split", "system", "check_pid"] | CODE |
| LOW⚡ | IPython/utils/ipstruct.py | 22 | __all__ = ['Struct'] | CODE |
| LOW | IPython/utils/PyColorize.py | 27 | __all__ = ["Parser", "Theme"] | CODE |
| LOW | IPython/utils/_process_emscripten.py | 22 | __all__ = ["system", "getoutput", "check_pid", "arg_split"] | CODE |
| LOW | IPython/extensions/deduperreload/deduperreload.py | 200 | def update_sources(self) -> None: | CODE |
| LOW | IPython/lib/display.py | 12 | __all__ = ['Audio', 'IFrame', 'YouTubeVideo', 'VimeoVideo', 'ScribdDocument', | CODE |
| LOW | IPython/lib/pretty.py | 114 | __all__ = ['pretty', 'pprint', 'PrettyPrinter', 'RepresentationPrinter', | CODE |
| LOW | IPython/lib/demo.py | 191 | __all__ = ['Demo','IPythonDemo','LineDemo','IPythonLineDemo','DemoError'] | CODE |
| LOW | IPython/lib/lexers.py | 24 | __all__ = [ | CODE |
| LOW | tests/bad_all.py | 15 | __all__ = [ | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | setup.py | 24 | # This check is also made in IPython/__init__, don't forget to update both when | COMMENT |
| LOW⚡ | setup.py | 24 | # This check is also made in IPython/__init__, don't forget to update both when | COMMENT |
| LOW⚡ | IPython/__init__.py | 30 | # Don't forget to also update setup.py when this changes! | COMMENT |
| MEDIUM | IPython/core/formatters.py | 636 | how to write pretty printers. Here is a simple example:: | STRING |
| LOW | IPython/core/magics/code.py | 582 | close it (don't forget to save it!). | STRING |
| MEDIUM | IPython/terminal/embed.py | 427 | Here is a simple example:: | STRING |
| MEDIUM | IPython/lib/latextools.py | 38 | # unicode pretty printing is used, you can use ["matplotlib"]. | COMMENT |
| MEDIUM | examples/Embedding/embed_class_long.py | 91 | # - A call-specific header string, which you can use to indicate where in the | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | IPython/core/magic.py | 910 | # Check if we have more than one argument to warrant extra processing: | COMMENT |
| LOW | IPython/core/guarded_eval.py | 197 | # Check if the method comes from this trusted base class | COMMENT |
| LOW | IPython/core/completer.py | 2662 | # Check if first token is a known alias | COMMENT |
| LOW | IPython/core/tips.py | 117 | # Check if argcomplete is installed and add tip. | COMMENT |
| LOW | IPython/core/interactiveshell.py | 3571 | # Check if the exception (or its context) is an ExceptionGroup. | COMMENT |
| LOW | IPython/core/interactiveshell.py | 4137 | if os.path.isfile(tgt): # Read file | CODE |
| LOW | IPython/core/interactiveshell.py | 635 | # Check if we're in a virtualenv, and set up sys.path. | STRING |
| LOW | IPython/core/magics/basic.py | 657 | # Check if this execution_count is in exceptions (current session) | COMMENT |
| LOW | IPython/core/magics/packaging.py | 55 | # Check if there is a conda executable in the same directory as the Python executable. | COMMENT |
| LOW | IPython/core/magics/history.py | 164 | # Check if output to specific file was requested. | COMMENT |
| LOW | IPython/utils/text.py | 409 | # Check if all characters in this position are the same | COMMENT |
| LOW | IPython/extensions/autoreload.py | 500 | # Check if there's already a different mapping for the same resolved_name from a different original_name | COMMENT |
| LOW | tests/test_magic.py | 1039 | # Check if notebook is trusted | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | IPython/core/tbtools.py | 129 | """Hopefully pretty robust repr equivalent.""" | STRING |
| LOW | IPython/core/completer.py | 1326 | # Note: ideally we would just return words here and the prefix | COMMENT |
| LOW | IPython/core/interactiveshell.py | 990 | # but others can symlink *to* the venv Python, so we can't just use sys.executable. | COMMENT |
| LOW | IPython/core/interactiveshell.py | 2714 | # pexpect or pipes to read from. Users can always just call | COMMENT |
| LOW | IPython/core/magics/script.py | 225 | # just create an event loop | STRING |
| LOW | IPython/sphinxext/ipython_directive.py | 791 | # exception, but for now, we just set the backend to 'agg'. | COMMENT |
| LOW | IPython/terminal/embed.py | 147 | # Ask-exit does not really ask, it just set internals flags to exit | COMMENT |
| LOW | IPython/utils/ipstruct.py | 110 | # I can't simply call hasattr here because it calls getattr, which | COMMENT |
| LOW | IPython/utils/timing.py | 69 | # There is no distinction of user/system time under windows, so we just use | COMMENT |
| MEDIUM | tests/test_debugger.py | 752 | """Create a comprehensive module hierarchy for testing all debugger commands.""" | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | IPython/core/doctb.py | 105 | CODE | |
| LOW | IPython/core/ultratb.py | 505 | CODE | |
| LOW | IPython/core/ultratb.py | 1117 | CODE | |
| LOW | IPython/core/display.py | 885 | CODE | |
| LOW | IPython/core/display.py | 1134 | CODE | |
| LOW | IPython/core/display.py | 1259 | CODE | |
| LOW | IPython/core/interactiveshell.py | 2948 | CODE | |
| LOW | IPython/core/magic_arguments.py | 140 | CODE | |
| LOW | IPython/lib/display.py | 111 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | tests/test_debugger_backport.py | 93 | # the internal evaluation scaffolding must not leak into the locals | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_tokenutil.py | 56 | def test_function(): | CODE |
| LOW | tests/test_completer.py | 2133 | " def my_method(self) -> str:", | CODE |
| LOW | tests/test_completer.py | 2145 | " def my_method(self) -> str:", | CODE |
| LOW | tests/test_completer.py | 2157 | " def my_method(self) -> str:", | CODE |
| LOW | tests/test_completer.py | 2169 | " def my_method(self):", | CODE |
| LOW | tests/test_completer.py | 2255 | " def my_method(self):", | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/test_shortcuts.py | 650 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_display_2.py | 407 | """use a tempfile, with dummy-data, to ensure that video embedding doesn't crash""" | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | IPython/core/guarded_eval.py | 751 | The purpose of this function is to guard against unwanted side-effects; | STRING |