Repository Analysis

ipython/ipython

Official repository for IPython itself. Other repos in the IPython organization contain things like the website, documentation builds, etc.

39.4 Strong AI signal View on GitHub
39.4
Adjusted Score
39.4
Raw Score
100%
Time Factor
2026-05-29
Last Push
16,708
Stars
Python
Language
86,958
Lines of Code
327
Files
1671
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 32MEDIUM 659LOW 980

Pattern Findings

1671 matches across 14 categories. Click a row to expand file-level details.

Decorative Section Separators613 hits · 2262 pts
SeverityFileLineSnippet
MEDIUMsetupbase.py29#-------------------------------------------------------------------------------
MEDIUMsetupbase.py31#-------------------------------------------------------------------------------
MEDIUMsetupbase.py41#---------------------------------------------------------------------------
MEDIUMsetupbase.py43#---------------------------------------------------------------------------
MEDIUMsetupbase.py56#---------------------------------------------------------------------------
MEDIUMsetupbase.py58#---------------------------------------------------------------------------
MEDIUMsetupbase.py85#---------------------------------------------------------------------------
MEDIUMsetupbase.py87#---------------------------------------------------------------------------
MEDIUMsetupbase.py151#---------------------------------------------------------------------------
MEDIUMsetupbase.py153#---------------------------------------------------------------------------
MEDIUMsetup.py8#-----------------------------------------------------------------------------
MEDIUMsetup.py17#-----------------------------------------------------------------------------
MEDIUMsetup.py71#-------------------------------------------------------------------------------
MEDIUMsetup.py73#-------------------------------------------------------------------------------
MEDIUMsetup.py91#---------------------------------------------------------------------------
MEDIUMsetup.py93#---------------------------------------------------------------------------
MEDIUMsetup.py99#---------------------------------------------------------------------------
MEDIUMsetup.py101#---------------------------------------------------------------------------
MEDIUMsetup.py111#---------------------------------------------------------------------------
MEDIUMsetup.py113#---------------------------------------------------------------------------
MEDIUMIPython/__init__.py7#-----------------------------------------------------------------------------
MEDIUMIPython/__init__.py16#-----------------------------------------------------------------------------
MEDIUMIPython/__init__.py18#-----------------------------------------------------------------------------
MEDIUMIPython/__init__.py20#-----------------------------------------------------------------------------
MEDIUMIPython/__init__.py25#-----------------------------------------------------------------------------
MEDIUMIPython/__init__.py27#-----------------------------------------------------------------------------
MEDIUMIPython/__init__.py49#-----------------------------------------------------------------------------
MEDIUMIPython/__init__.py51#-----------------------------------------------------------------------------
MEDIUMIPython/display.py3# -----------------------------------------------------------------------------
MEDIUMIPython/display.py8# -----------------------------------------------------------------------------
MEDIUMIPython/display.py10# -----------------------------------------------------------------------------
MEDIUMIPython/display.py12# -----------------------------------------------------------------------------
MEDIUMIPython/__main__.py4# -----------------------------------------------------------------------------
MEDIUMIPython/__main__.py10# -----------------------------------------------------------------------------
MEDIUMIPython/core/prefilter.py30#-----------------------------------------------------------------------------
MEDIUMIPython/core/prefilter.py32#-----------------------------------------------------------------------------
MEDIUMIPython/core/prefilter.py73#-----------------------------------------------------------------------------
MEDIUMIPython/core/prefilter.py75#-----------------------------------------------------------------------------
MEDIUMIPython/core/prefilter.py127 #-------------------------------------------------------------------------
MEDIUMIPython/core/prefilter.py129 #-------------------------------------------------------------------------
MEDIUMIPython/core/prefilter.py155 #-------------------------------------------------------------------------
MEDIUMIPython/core/prefilter.py157 #-------------------------------------------------------------------------
MEDIUMIPython/core/prefilter.py191 #-------------------------------------------------------------------------
MEDIUMIPython/core/prefilter.py193 #-------------------------------------------------------------------------
MEDIUMIPython/core/prefilter.py234 #-------------------------------------------------------------------------
MEDIUMIPython/core/prefilter.py236 #-------------------------------------------------------------------------
MEDIUMIPython/core/prefilter.py331#-----------------------------------------------------------------------------
MEDIUMIPython/core/prefilter.py333#-----------------------------------------------------------------------------
MEDIUMIPython/core/prefilter.py361#-----------------------------------------------------------------------------
MEDIUMIPython/core/prefilter.py363#-----------------------------------------------------------------------------
MEDIUMIPython/core/prefilter.py525#-----------------------------------------------------------------------------
MEDIUMIPython/core/prefilter.py527#-----------------------------------------------------------------------------
MEDIUMIPython/core/prefilter.py686#-----------------------------------------------------------------------------
MEDIUMIPython/core/prefilter.py688#-----------------------------------------------------------------------------
MEDIUMIPython/core/magic.py5# -----------------------------------------------------------------------------
MEDIUMIPython/core/magic.py12# -----------------------------------------------------------------------------
MEDIUMIPython/core/magic.py42# -----------------------------------------------------------------------------
MEDIUMIPython/core/magic.py44# -----------------------------------------------------------------------------
MEDIUMIPython/core/magic.py58# -----------------------------------------------------------------------------
MEDIUMIPython/core/magic.py60# -----------------------------------------------------------------------------
553 more matches not shown…
Hyper-Verbose Identifiers457 hits · 400 pts
SeverityFileLineSnippet
LOWIPython/core/profiledir.py186 def create_profile_dir_by_name(cls, path, name=u'default', config=None):
LOWIPython/core/formatters.py737 def _singleton_printers_default(self):
LOWIPython/core/formatters.py752 def _deferred_printers_default(self):
LOWIPython/core/inputtransformer2.py234def find_end_of_continued_line(lines, start_line: int):
LOWIPython/core/tbtools.py220def _simple_format_traceback_lines(
LOWIPython/core/tbtools.py344 def variables_in_executing_piece(self) -> list[Any]:
LOWIPython/core/tbtools.py463 def get_parts_of_chained_exception(
LOWIPython/core/tbtools.py476 def prepare_chained_exception_message(
LOWIPython/core/guarded_eval.py150def _has_original_dunder_external(
LOWIPython/core/guarded_eval.py535 def _ipython_key_completions_(self):
LOWIPython/core/guarded_eval.py556def _validate_policy_overrides(
LOWIPython/core/guarded_eval.py741def _is_instance_attribute_assignment(
LOWIPython/core/guarded_eval.py754def _get_coroutine_attributes() -> dict[str, Optional[object]]:
LOWIPython/core/guarded_eval.py1475def _create_duck_for_heap_type(duck_type):
LOWIPython/core/doctb.py279 def format_exception_as_a_whole(
LOWIPython/core/completer.py1445def _match_number_in_dict_key_prefix(prefix: str) -> Union[str, None]:
LOWIPython/core/completer.py1722def back_unicode_name_matcher(context: CompletionContext):
LOWIPython/core/completer.py1733def back_unicode_name_matches(text: str) -> tuple[str, Sequence[str]]:
LOWIPython/core/completer.py2587 def _determine_completion_context(self, line):
LOWIPython/core/completer.py2618 def _is_completing_in_cli_context(self, text: str) -> bool:
LOWIPython/core/completer.py2841 def _default_arguments_from_docstring(self, doc):
LOWIPython/core/completer.py1055 def _policy_overrides_changed(self, _change):
LOWIPython/core/completer.py1208 def _strip_code_before_operator(self, code: str) -> str:
LOWIPython/core/completer.py3220 def dispatch_custom_completer(self, text):
LOWIPython/core/ultratb.py741 def format_exception_as_a_whole(
LOWIPython/core/debugger.py1062 def _is_in_decorator_internal_and_should_skip(self, frame):
LOWIPython/core/debugger.py1074 def _cached_one_parent_frame_debuggerskip(self, frame):
LOWIPython/core/application.py144 def _config_file_name_default(self):
LOWIPython/core/application.py147 def _config_file_name_changed(self, change):
LOWIPython/core/application.py158 def _config_file_paths_default(self):
LOWIPython/core/application.py167 def _extra_config_file_changed(self, change):
LOWIPython/core/application.py470 def stage_default_config_file(self):
LOWIPython/core/extensions.py127 def _call_load_ipython_extension(self, mod):
LOWIPython/core/extensions.py132 def _call_unload_ipython_extension(self, mod):
LOWIPython/core/displaypub.py68 def _setup_execution_tracking(self):
LOWIPython/core/pylabtools.py455def _matplotlib_manages_backends() -> bool:
LOWIPython/core/pylabtools.py481def _list_matplotlib_backends_and_gui_loops() -> list[str]:
LOWIPython/core/pylabtools.py505def _convert_gui_to_matplotlib(gui: str | None) -> str | None:
LOWIPython/core/pylabtools.py511def _convert_gui_from_matplotlib(gui: str | None) -> str | None:
LOWIPython/core/interactiveshell.py3470 def _format_exception_for_storage(
LOWIPython/core/interactiveshell.py466 def _sphinxify_docstring_changed(self, change):
LOWIPython/core/interactiveshell.py477 def _enable_html_pager_changed(self, change):
LOWIPython/core/interactiveshell.py498 def input_transformers_cleanup(self):
LOWIPython/core/oinspect.py1092 def _source_contains_docstring(src, doc):
LOWIPython/core/profileapp.py216 def _copy_config_files_default(self):
LOWIPython/core/profileapp.py289 def stage_default_config_file(self):
LOWIPython/core/displayhook.py100 def semicolon_at_end_of_expression(expression):
LOWIPython/core/magic_arguments.py105 def _format_action_invocation(self, action):
LOWIPython/core/history.py721 def _switch_to_memory_history(self) -> None:
LOWIPython/core/history.py743 def _restart_thread_if_stopped(self) -> None:
LOWIPython/core/history.py259 def _default_connection_options(self) -> dict[str, bool]:
LOWIPython/core/magics/basic.py673 def _get_kernel_language_info(self) -> dict | None:
LOWIPython/core/magics/packaging.py36def _get_conda_like_executable(command):
LOWIPython/terminal/ptutils.py91def _adjust_completion_text_based_on_context(text, body, offset):
LOWIPython/terminal/prompts.py54 def continuation_prompt_tokens(
LOWIPython/terminal/prompts.py104 def continuation_prompt_tokens(self, width=None):
LOWIPython/terminal/interactiveshell.py78def _backward_compat_continuation_prompt_tokens(
LOWIPython/terminal/interactiveshell.py353 def _highlighting_style_changed(self, change):
LOWIPython/terminal/interactiveshell.py395 def _displayhook_class_default(self):
LOWIPython/terminal/interactiveshell.py472 def _llm_prefix_from_history_changed(self, change):
397 more matches not shown…
Unused Imports206 hits · 196 pts
SeverityFileLineSnippet
LOWsetupbase.py20
LOWsetupbase.py22
LOWsetupbase.py25
LOWsetupbase.py26
LOWsetup.py19
LOW_build_meta.py2
LOWtools/tests/embed/embed_flufl.py2
LOWIPython/__init__.py53
LOWIPython/__init__.py55
LOWIPython/__init__.py56
LOWIPython/__init__.py58
LOWIPython/__init__.py59
LOWIPython/display.py14
LOWIPython/display.py15
LOWIPython/display.py15
LOWIPython/display.py15
LOWIPython/display.py15
LOWIPython/display.py15
LOWIPython/display.py15
LOWIPython/display.py15
LOWIPython/display.py15
LOWIPython/display.py15
LOWIPython/display.py15
LOWIPython/display.py15
LOWIPython/display.py15
LOWIPython/display.py15
LOWIPython/display.py15
LOWIPython/display.py15
LOWIPython/display.py15
LOWIPython/display.py15
LOWIPython/display.py15
LOWIPython/display.py15
LOWIPython/display.py15
LOWIPython/display.py15
LOWIPython/display.py15
LOWIPython/display.py15
LOWIPython/display.py15
LOWIPython/display.py41
LOWIPython/core/magic.py1
LOWIPython/core/magic.py27
LOWIPython/core/magic.py30
LOWIPython/core/events.py16
LOWIPython/core/display_functions.py10
LOWIPython/core/splitinput.py11
LOWIPython/core/completer.py180
LOWIPython/core/ultratb.py69
LOWIPython/core/ultratb.py79
LOWIPython/core/ultratb.py79
LOWIPython/core/ultratb.py87
LOWIPython/core/ultratb.py88
LOWIPython/core/ultratb.py89
LOWIPython/core/ultratb.py94
LOWIPython/core/display.py20
LOWIPython/core/debugger.py124
LOWIPython/core/tips.py118
LOWIPython/core/extensions.py7
LOWIPython/core/extensions.py8
LOWIPython/core/extensions.py13
LOWIPython/core/displaypub.py24
LOWIPython/core/interactiveshell.py90
146 more matches not shown…
Deep Nesting132 hits · 116 pts
SeverityFileLineSnippet
LOWIPython/paths.py19
LOWIPython/core/prefilter.py606
LOWIPython/core/magic.py428
LOWIPython/core/magic.py687
LOWIPython/core/formatters.py458
LOWIPython/core/formatters.py573
LOWIPython/core/inputtransformer2.py217
LOWIPython/core/inputtransformer2.py598
LOWIPython/core/inputtransformer2.py646
LOWIPython/core/inputtransformer2.py89
LOWIPython/core/inputtransformer2.py115
LOWIPython/core/inputtransformer2.py359
LOWIPython/core/tbtools.py131
LOWIPython/core/guarded_eval.py150
LOWIPython/core/guarded_eval.py595
LOWIPython/core/guarded_eval.py765
LOWIPython/core/guarded_eval.py1211
LOWIPython/core/guarded_eval.py1274
LOWIPython/core/guarded_eval.py1348
LOWIPython/core/page.py128
LOWIPython/core/doctb.py325
LOWIPython/core/shellapp.py317
LOWIPython/core/shellapp.py385
LOWIPython/core/shellapp.py458
LOWIPython/core/logger.py68
LOWIPython/core/completer.py1487
LOWIPython/core/completer.py1128
LOWIPython/core/completer.py1208
LOWIPython/core/completer.py1254
LOWIPython/core/completer.py2311
LOWIPython/core/completer.py2499
LOWIPython/core/completer.py2653
LOWIPython/core/completer.py2770
LOWIPython/core/completer.py2816
LOWIPython/core/completer.py2867
LOWIPython/core/completer.py2907
LOWIPython/core/completer.py3220
LOWIPython/core/completer.py3350
LOWIPython/core/completer.py3573
LOWIPython/core/ultratb.py290
LOWIPython/core/ultratb.py814
LOWIPython/core/display.py365
LOWIPython/core/display.py869
LOWIPython/core/debugger.py875
LOWIPython/core/debugger.py1138
LOWIPython/core/debugger.py1204
LOWIPython/core/debugger.py419
LOWIPython/core/application.py384
LOWIPython/core/interactiveshell.py1458
LOWIPython/core/interactiveshell.py1568
LOWIPython/core/interactiveshell.py1590
LOWIPython/core/interactiveshell.py1660
LOWIPython/core/interactiveshell.py1704
LOWIPython/core/interactiveshell.py1921
LOWIPython/core/interactiveshell.py2164
LOWIPython/core/interactiveshell.py2554
LOWIPython/core/interactiveshell.py2932
LOWIPython/core/interactiveshell.py3000
LOWIPython/core/interactiveshell.py3470
LOWIPython/core/interactiveshell.py3589
72 more matches not shown…
Excessive Try-Catch Wrapping103 hits · 108 pts
SeverityFileLineSnippet
LOWsetup.py37 except Exception:
LOWtools/update_whatsnew.py45 except Exception as e:
LOWIPython/core/prefilter.py626 except Exception:
MEDIUMIPython/core/magic.py660 print("Error in arguments:")
LOWIPython/core/completerlib.py96 except Exception:
LOWIPython/core/formatters.py271 except Exception as e:
LOWIPython/core/formatters.py286 except Exception:
LOWIPython/core/formatters.py709 except Exception as e:
LOWIPython/core/guarded_eval.py1228 except Exception as e:
LOWIPython/core/guarded_eval.py1234 except Exception as e:
LOWIPython/core/guarded_eval.py1236 except Exception as e:
LOWIPython/core/guarded_eval.py679 except Exception:
LOWIPython/core/guarded_eval.py910 except Exception:
LOWIPython/core/guarded_eval.py918 except Exception:
LOWIPython/core/guarded_eval.py930 except Exception:
LOWIPython/core/guarded_eval.py1137 except Exception:
LOWIPython/core/guarded_eval.py1285 except Exception:
LOWIPython/core/doctb.py214 except Exception:
LOWIPython/core/shellapp.py301 except Exception:
MEDIUMIPython/core/completer.py2564 print("Error detecting if completing a non-finished string :", e, '|')
LOWIPython/core/completer.py2561 except Exception as e:
LOWIPython/core/completer.py2570 except Exception as e:
LOWIPython/core/completer.py1296 except Exception:
LOWIPython/core/completer.py1390 except Exception as e:
LOWIPython/core/completer.py1411 except Exception:
LOWIPython/core/completer.py1579 except Exception:
LOWIPython/core/completer.py2650 except Exception:
MEDIUMIPython/core/completer.py3411 print("Error in Jedi getting type of ", jm)
LOWIPython/core/completer.py1166 except Exception as e:
LOWIPython/core/completer.py3001 except Exception:
LOWIPython/core/completer.py3006 except Exception:
LOWIPython/core/completer.py3409 except Exception:
LOWIPython/core/ultratb.py604 except Exception:
LOWIPython/core/display.py60 except Exception:
LOWIPython/core/application.py377 except Exception:
LOWIPython/core/interactiveshell.py820 except Exception:
LOWIPython/core/interactiveshell.py2227 except Exception:
LOWIPython/core/interactiveshell.py3194 except Exception:
LOWIPython/core/interactiveshell.py3277 except Exception:
LOWIPython/core/interactiveshell.py3381 except Exception:
LOWIPython/core/interactiveshell.py3519 except Exception:
LOWIPython/core/interactiveshell.py3578 except Exception as e:
LOWIPython/core/interactiveshell.py3932 except Exception:
LOWIPython/core/interactiveshell.py4079 except Exception as e:
LOWIPython/core/oinspect.py223 except Exception:
LOWIPython/core/oinspect.py546 except Exception:
LOWIPython/core/oinspect.py964 except Exception:
LOWIPython/core/oinspect.py993 except Exception:
LOWIPython/core/oinspect.py1102 except Exception:
LOWIPython/core/profileapp.py255 except Exception:
LOWIPython/core/debugger_backport.py131 except Exception:
LOWIPython/core/debugger_backport.py139 except Exception:
MEDIUMIPython/core/history.py623def _dir_hist_default(self) -> list[Path]:
LOWIPython/core/history.py725 except Exception:
LOWIPython/core/history.py1167 except Exception as e:
LOWIPython/core/magics/execution.py531 except Exception:
LOWIPython/core/magics/execution.py1000 except Exception:
LOWIPython/core/magics/execution.py1403 except Exception as e:
LOWIPython/core/magics/execution.py1422 except Exception as e:
LOWIPython/core/magics/config.py139 except Exception as e:
43 more matches not shown…
Cross-File Repetition20 hits · 100 pts
SeverityFileLineSnippet
HIGHIPython/core/tbtools.py0convert a structured traceback (a list) to a string.
HIGHIPython/core/ultratb.py0convert a structured traceback (a list) to a string.
HIGHIPython/core/ultratb.py0convert a structured traceback (a list) to a string.
HIGHIPython/extensions/tests/test_deduperreload.py0def factorial(n): def fn(sdfsdf): print(sdfsdf) if n < 0: return "factorial is not defined for negative numbers." elif n
HIGHIPython/extensions/tests/test_deduperreload.py0def factorial(n): def fn(sdfsdf): print(sdfsdf) if n < 0: return "factorial is not defined for negative numbers." elif n
HIGHIPython/extensions/tests/test_deduperreload.py0def factorial(n): def fn(sdfsdf): print(sdfsdf) if n < 0: return "factorial is not defined for negative numbers." elif n
HIGHIPython/extensions/tests/test_deduperreload.py0async def sleep(): print(f'time: {time.time() - start:.2f}') await asyncio.sleep(1)
HIGHIPython/extensions/tests/test_deduperreload.py0async def sleep(): print(f'time: {time.time() - start:.2f}') await asyncio.sleep(1)
HIGHIPython/extensions/tests/test_deduperreload.py0async def sleep(): print(f'time: {time.time() - start:.2f}') await asyncio.sleep(1)
HIGHIPython/extensions/tests/test_deduperreload.py0class c: x = 9 def c(): return 13 class d: def foo(): return 10
HIGHIPython/extensions/tests/test_deduperreload.py0class c: x = 9 def c(): return 13 class d: def foo(): return 10
HIGHIPython/extensions/tests/test_deduperreload.py0class c: x = 9 def c(): return 13 class d: def foo(): return 10
HIGHIPython/extensions/tests/test_deduperreload.py0class foo: @classmethod def bar(cls): return 0 @classmethod def foo(cls): return 42 + cls.bar() foo = foo.foo
HIGHIPython/extensions/tests/test_deduperreload.py0class foo: @classmethod def bar(cls): return 0 @classmethod def foo(cls): return 42 + cls.bar() foo = foo.foo
HIGHIPython/extensions/tests/test_deduperreload.py0class foo: @classmethod def bar(cls): return 0 @classmethod def foo(cls): return 42 + cls.bar() foo = foo.foo
HIGHIPython/extensions/tests/test_deduperreload.py0class foo: @classmethod def bar(cls): return 0 @classmethod def foo(cls): return 42 + cls.bar() foo = foo.foo
HIGHIPython/extensions/tests/test_deduperreload.py0class foo: @classmethod def bar(cls): return 0 @classmethod def foo(cls): return 42 + cls.bar() foo = foo.foo
HIGHtests/test_ipunittest.py0in [20]: print(1) 1 in [26]: for i in range(4): ....: print(i) ....: ....: 0 1 2 3 in [27]: 3+4 out[27]: 7
HIGHtests/test_ipunittest.py0in [20]: print(1) 1 in [26]: for i in range(4): ....: print(i) ....: ....: 0 1 2 3 in [27]: 3+4 out[27]: 7
HIGHtests/test_ipunittest.py0in [20]: print(1) 1 in [26]: for i in range(4): ....: print(i) ....: ....: 0 1 2 3 in [27]: 3+4 out[27]: 7
Self-Referential Comments29 hits · 87 pts
SeverityFileLineSnippet
MEDIUMsetupbase.py48# Create a dict with the basic information
MEDIUMtools/gen_latex_symbols.py81# This file is autogenerated from the file:
MEDIUMIPython/core/magic.py321# Create the actual decorators for public use
MEDIUMIPython/core/magic.py540 # Create the new method in the user_magics and register it in the
MEDIUMIPython/core/historyapp.py74 # Create the new history database.
MEDIUMIPython/core/completer.py3232 # Create a little structure to pass all the relevant information about
MEDIUMIPython/core/debugger.py116# This file is licensed under the PSF license.
MEDIUMIPython/core/interactiveshell.py1245 # Create the namespace where the user will operate. user_ns is
MEDIUMIPython/core/latex_symbols.py7# This file is autogenerated from the file:
MEDIUMIPython/core/magics/script.py201 # Create the event loop in which to run script magics
MEDIUMIPython/terminal/ipapp.py296 # Create an InteractiveShell instance.
MEDIUMIPython/utils/_process_win32_controller.py274 # Create the process object
MEDIUMIPython/utils/_process_win32_controller.py411 # Create a thread for each input/output handle
MEDIUMIPython/testing/plugin/ipdoctest.py189 # Create an Example, and add it to the list.
MEDIUMtests/test_zzz_autoreload.py989 # Create a test module with only 'foo' attribute
MEDIUMtests/test_zzz_autoreload.py998 # Create a tracker
MEDIUMtests/test_zzz_autoreload.py898 # Create a test module with both 'foo' and 'bar' attributes
MEDIUMtests/test_zzz_autoreload.py915 # Create a tracker
MEDIUMtests/test_zzz_autoreload.py945 # Create a test module
MEDIUMtests/test_zzz_autoreload.py962 # Create a tracker
MEDIUMtests/test_zzz_autoreload.py1022 # Create a test module
MEDIUMtests/test_zzz_autoreload.py1064 # Create a test module
MEDIUMtests/test_zzz_autoreload.py1106 # Create a tracker
MEDIUMtests/test_zzz_autoreload.py1138 # Create a tracker
MEDIUMtests/test_prefilter.py112 # Create a callable broken object
MEDIUMtests/test_completer.py1544 # Create a subclass in __main__ (untrusted namespace)
MEDIUMtests/test_application.py37 # Create the config file, so it tries to load it.
MEDIUMtests/test_application.py63 # Create the config file, so it tries to load it.
MEDIUMexamples/Embedding/embed_class_short.py43 # Define a dummy ipshell() so the same code doesn't crash inside an
Cross-Language Confusion12 hits · 56 pts
SeverityFileLineSnippet
HIGHsetup.py84 "cd docs/man && python -m gzip --best ipython.1",
HIGHIPython/core/displayhook.py234 self.shell.push({'_':self._,
HIGHIPython/core/displayhook.py243 self.shell.push(to_main, interactive=False)
HIGHIPython/core/history.py1026 self.shell.push(to_main, interactive=False)
HIGHIPython/extensions/autoreload.py844 self.shell.push({top_name: top_module})
HIGHtests/test_interactiveshell.py233 ip.push(myvars, interactive=False)
HIGHtests/test_interactiveshell.py789 ip.push({"f": f})
HIGHtests/test_interactiveshell.py806 ip.push({"f": f})
HIGHtests/test_interactiveshell.py820 ip.push({"a": 10})
HIGHtests/test_interactiveshell.py883 ip.push({"Integer": Integer})
HIGHtests/test_interactiveshell.py907 ip.push({"f": f})
HIGHtests/fake_ext_dir/daft_extension.py10 ip.push(some_vars)
Over-Commented Block61 hits · 56 pts
SeverityFileLineSnippet
LOWpyproject.toml421 # "B", # flake8-bugbear
LOWpyproject.toml441 # "UP006", # 1 [*] Use `tuple` instead of `t.Tuple` for type annotation
LOWpyproject.toml461 "UP034", # 1 [*] Avoid extraneous parentheses
LOWsetup.py1# -*- coding: utf-8 -*-
LOWtools/configure-git-blame-ignore-revs.sh1#!/bin/sh
LOWIPython/__init__.py1# PYTHON_ARGCOMPLETE_OK
LOWIPython/__main__.py1# PYTHON_ARGCOMPLETE_OK
LOWIPython/core/prefilter.py41
LOWIPython/core/magic.py41
LOWIPython/core/completerlib.py1# encoding: utf-8
LOWIPython/core/release.py1# -*- coding: utf-8 -*-
LOWIPython/core/completer.py621 # which was not explicitly visible as an argument of the matcher, making any refactor
LOWIPython/core/completer.py3781 - list of potential completions, empty tuple otherwise)
LOWIPython/core/ultratb.py561 call = theme_table[self._theme_name].format(
LOWIPython/core/tips.py1from datetime import datetime
LOWIPython/core/tips.py21 # [2/8/25, 23:29:05] Fernando Perez:
LOWIPython/core/interactiveshell.py1241 #-------------------------------------------------------------------------
LOWIPython/core/interactiveshell.py1261 # Datum: Freitag 01 Oktober 2004 04:45:34 nachmittags/abends
LOWIPython/core/interactiveshell.py1281 if (user_ns is not None) or (user_module is not None):
LOWIPython/core/interactiveshell.py1301 # To avoid keeping stale modules around (we only need the one from the
LOWIPython/core/interactiveshell.py1361 user_module.__dict__.setdefault('__builtin__', builtin_mod)
LOWIPython/core/interactiveshell.py1401 # user_ns, and we sync that contents into user_ns_hidden so that these
LOWIPython/core/interactiveshell.py1841 # The universal alternative is to traverse the mro manually
LOWIPython/core/interactiveshell.py2721 # codes and signals, ipython uses negative numbers. For instance
LOWIPython/core/displayhook.py181 md_dict : dict (optional)
LOWIPython/core/magics/logging.py1"""Implementation of magic functions for IPython's own logging.
LOWIPython/core/magics/config.py1"""Implementation of configuration-related magic functions.
LOWIPython/core/magics/pylab.py1"""Implementation of magic functions for matplotlib/pylab support.
LOWIPython/core/magics/code.py1"""Implementation of code management magic functions.
LOWIPython/core/magics/display.py1"""Simple magics for display formats"""
LOWIPython/core/magics/extension.py1"""Implementation of magic functions for the extension machinery.
LOWIPython/core/magics/namespace.py1"""Implementation of namespace-related magic functions.
LOWIPython/core/magics/auto.py1"""Implementation of magic functions that control various automatic behaviors.
LOWIPython/core/magics/history.py1"""Implementation of magic functions related to History.
LOWIPython/sphinxext/ipython_directive.py521 # `processed_output` is equal to '', then the adding it to `ret`
LOWIPython/sphinxext/ipython_directive.py541 #
LOWIPython/terminal/pt_inputhooks/glut.py1"""GLUT Input hook for interactive use with prompt_toolkit
LOWIPython/terminal/pt_inputhooks/glut.py121 # and switch between a short and long sleep time. Here are some
LOWIPython/terminal/pt_inputhooks/gtk.py1# Code borrowed from python-prompt-toolkit examples
LOWIPython/terminal/pt_inputhooks/tk.py1# Code borrowed from ptpython
LOWIPython/terminal/pt_inputhooks/pyglet.py41 window.dispatch_events()
LOWIPython/terminal/pt_inputhooks/wx.py121 ea = wx.EventLoopActivator(evtloop)
LOWIPython/terminal/shortcuts/filters.py221 "is_cursor_at_the_end_of_line": is_cursor_at_the_end_of_line,
LOWIPython/utils/module_paths.py1"""Utility functions for finding modules
LOWIPython/utils/_process_posix.py101 enc = DEFAULT_ENCODING
LOWIPython/extensions/autoreload.py141# Copyright (C) 2012 The IPython Development Team
LOWIPython/lib/__init__.py1# encoding: utf-8
LOWtests/test_pycolorize.py1# coding: utf-8
LOWtests/test_debug_magic.py1"""Test embedding of IPython"""
LOWtests/test_compilerop.py1# coding: utf-8
LOWtests/test_backgroundjobs.py1"""Tests for pylab tools module."""
LOWtests/test_async_helpers.py61 test_cases = []
LOWtests/nonascii.py1# coding: iso-8859-5
LOWtests/test_importstring.py1"""Tests for IPython.utils.importstring."""
LOWtests/nonascii2.py1# coding: iso-8859-5
LOWdocs/source/conf.py61
LOWdocs/source/conf.py101
LOWdocs/source/conf.py141]
LOWexamples/Embedding/embed_class_long.py81
LOW.github/workflows/downstream.yml61 env:
1 more matches not shown…
Redundant / Tautological Comments13 hits · 16 pts
SeverityFileLineSnippet
LOWIPython/core/magic.py733 # Check if we have more than one argument to warrant extra processing:
LOWIPython/core/guarded_eval.py192 # Check if the method comes from this trusted base class
LOWIPython/core/completer.py2636 # Check if first token is a known alias
LOWIPython/core/tips.py116# Check if argcomplete is installed and add tip
LOWIPython/core/interactiveshell.py3498 # Check if the exception (or its context) is an ExceptionGroup.
LOWIPython/core/interactiveshell.py4060 if os.path.isfile(tgt): # Read file
LOWIPython/core/interactiveshell.py635 # Check if we're in a virtualenv, and set up sys.path.
LOWIPython/core/magics/basic.py634 # Check if this execution_count is in exceptions (current session)
LOWIPython/core/magics/packaging.py55 # Check if there is a conda executable in the same directory as the Python executable.
LOWIPython/core/magics/history.py164 # Check if output to specific file was requested.
LOWIPython/utils/text.py415 # Check if all characters in this position are the same
LOWIPython/extensions/autoreload.py504 # Check if there's already a different mapping for the same resolved_name from a different original_name
LOWtests/test_magic.py1034 # Check if notebook is trusted
Slop Phrases8 hits · 15 pts
SeverityFileLineSnippet
LOWsetup.py24# This check is also made in IPython/__init__, don't forget to update both when
LOWsetup.py24# This check is also made in IPython/__init__, don't forget to update both when
LOWIPython/__init__.py29# Don't forget to also update setup.py when this changes!
MEDIUMIPython/core/formatters.py637 how to write pretty printers. Here is a simple example::
LOWIPython/core/magics/code.py571 close it (don't forget to save it!).
MEDIUMIPython/terminal/embed.py369 Here is a simple example::
MEDIUMIPython/lib/latextools.py39 # unicode pretty printing is used, you can use ["matplotlib"].
MEDIUMexamples/Embedding/embed_class_long.py91# - A call-specific header string, which you can use to indicate where in the
AI Slop Vocabulary10 hits · 12 pts
SeverityFileLineSnippet
MEDIUMIPython/core/tbtools.py132 """Hopefully pretty robust repr equivalent."""
LOWIPython/core/completer.py1302 # Note: ideally we would just return words here and the prefix
LOWIPython/core/interactiveshell.py956 # but others can symlink *to* the venv Python, so we can't just use sys.executable.
LOWIPython/core/interactiveshell.py2664 # pexpect or pipes to read from. Users can always just call
LOWIPython/core/magics/script.py206 # just create an event loop
LOWIPython/sphinxext/ipython_directive.py790 # exception, but for now, we just set the backend to 'agg'.
LOWIPython/terminal/embed.py92 # Ask-exit does not really ask, it just set internals flags to exit
LOWIPython/utils/ipstruct.py110 # I can't simply call hasattr here because it calls getattr, which
LOWIPython/utils/timing.py69 # There is no distinction of user/system time under windows, so we just use
MEDIUMtests/test_debugger.py713 """Create a comprehensive module hierarchy for testing all debugger commands."""
Overly Generic Function Names6 hits · 4 pts
SeverityFileLineSnippet
LOWtests/test_tokenutil.py48def test_function():
LOWtests/test_completer.py2107 " def my_method(self) -> str:",
LOWtests/test_completer.py2119 " def my_method(self) -> str:",
LOWtests/test_completer.py2131 " def my_method(self) -> str:",
LOWtests/test_completer.py2143 " def my_method(self):",
LOWtests/test_completer.py2229 " def my_method(self):",
Verbosity Indicators1 hit · 0 pts
SeverityFileLineSnippet
LOWIPython/core/guarded_eval.py789 The purpose of this function is to guard against unwanted side-effects;