Official repository for IPython itself. Other repos in the IPython organization contain things like the website, documentation builds, etc.
1671 matches across 14 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | setupbase.py | 29 | #------------------------------------------------------------------------------- |
| MEDIUM | setupbase.py | 31 | #------------------------------------------------------------------------------- |
| MEDIUM | setupbase.py | 41 | #--------------------------------------------------------------------------- |
| MEDIUM | setupbase.py | 43 | #--------------------------------------------------------------------------- |
| MEDIUM | setupbase.py | 56 | #--------------------------------------------------------------------------- |
| MEDIUM | setupbase.py | 58 | #--------------------------------------------------------------------------- |
| MEDIUM | setupbase.py | 85 | #--------------------------------------------------------------------------- |
| MEDIUM | setupbase.py | 87 | #--------------------------------------------------------------------------- |
| MEDIUM | setupbase.py | 151 | #--------------------------------------------------------------------------- |
| MEDIUM | setupbase.py | 153 | #--------------------------------------------------------------------------- |
| MEDIUM | setup.py | 8 | #----------------------------------------------------------------------------- |
| MEDIUM | setup.py | 17 | #----------------------------------------------------------------------------- |
| MEDIUM | setup.py | 71 | #------------------------------------------------------------------------------- |
| MEDIUM | setup.py | 73 | #------------------------------------------------------------------------------- |
| MEDIUM | setup.py | 91 | #--------------------------------------------------------------------------- |
| MEDIUM | setup.py | 93 | #--------------------------------------------------------------------------- |
| MEDIUM | setup.py | 99 | #--------------------------------------------------------------------------- |
| MEDIUM | setup.py | 101 | #--------------------------------------------------------------------------- |
| MEDIUM | setup.py | 111 | #--------------------------------------------------------------------------- |
| MEDIUM | setup.py | 113 | #--------------------------------------------------------------------------- |
| MEDIUM | IPython/__init__.py | 7 | #----------------------------------------------------------------------------- |
| MEDIUM | IPython/__init__.py | 16 | #----------------------------------------------------------------------------- |
| MEDIUM | IPython/__init__.py | 18 | #----------------------------------------------------------------------------- |
| MEDIUM | IPython/__init__.py | 20 | #----------------------------------------------------------------------------- |
| MEDIUM | IPython/__init__.py | 25 | #----------------------------------------------------------------------------- |
| MEDIUM | IPython/__init__.py | 27 | #----------------------------------------------------------------------------- |
| MEDIUM | IPython/__init__.py | 49 | #----------------------------------------------------------------------------- |
| MEDIUM | IPython/__init__.py | 51 | #----------------------------------------------------------------------------- |
| MEDIUM | IPython/display.py | 3 | # ----------------------------------------------------------------------------- |
| MEDIUM | IPython/display.py | 8 | # ----------------------------------------------------------------------------- |
| MEDIUM | IPython/display.py | 10 | # ----------------------------------------------------------------------------- |
| MEDIUM | IPython/display.py | 12 | # ----------------------------------------------------------------------------- |
| MEDIUM | IPython/__main__.py | 4 | # ----------------------------------------------------------------------------- |
| MEDIUM | IPython/__main__.py | 10 | # ----------------------------------------------------------------------------- |
| MEDIUM | IPython/core/prefilter.py | 30 | #----------------------------------------------------------------------------- |
| MEDIUM | IPython/core/prefilter.py | 32 | #----------------------------------------------------------------------------- |
| MEDIUM | IPython/core/prefilter.py | 73 | #----------------------------------------------------------------------------- |
| MEDIUM | IPython/core/prefilter.py | 75 | #----------------------------------------------------------------------------- |
| MEDIUM | IPython/core/prefilter.py | 127 | #------------------------------------------------------------------------- |
| MEDIUM | IPython/core/prefilter.py | 129 | #------------------------------------------------------------------------- |
| MEDIUM | IPython/core/prefilter.py | 155 | #------------------------------------------------------------------------- |
| MEDIUM | IPython/core/prefilter.py | 157 | #------------------------------------------------------------------------- |
| MEDIUM | IPython/core/prefilter.py | 191 | #------------------------------------------------------------------------- |
| MEDIUM | IPython/core/prefilter.py | 193 | #------------------------------------------------------------------------- |
| MEDIUM | IPython/core/prefilter.py | 234 | #------------------------------------------------------------------------- |
| MEDIUM | IPython/core/prefilter.py | 236 | #------------------------------------------------------------------------- |
| MEDIUM | IPython/core/prefilter.py | 331 | #----------------------------------------------------------------------------- |
| MEDIUM | IPython/core/prefilter.py | 333 | #----------------------------------------------------------------------------- |
| MEDIUM | IPython/core/prefilter.py | 361 | #----------------------------------------------------------------------------- |
| MEDIUM | IPython/core/prefilter.py | 363 | #----------------------------------------------------------------------------- |
| MEDIUM | IPython/core/prefilter.py | 525 | #----------------------------------------------------------------------------- |
| MEDIUM | IPython/core/prefilter.py | 527 | #----------------------------------------------------------------------------- |
| MEDIUM | IPython/core/prefilter.py | 686 | #----------------------------------------------------------------------------- |
| MEDIUM | IPython/core/prefilter.py | 688 | #----------------------------------------------------------------------------- |
| MEDIUM | IPython/core/magic.py | 5 | # ----------------------------------------------------------------------------- |
| MEDIUM | IPython/core/magic.py | 12 | # ----------------------------------------------------------------------------- |
| MEDIUM | IPython/core/magic.py | 42 | # ----------------------------------------------------------------------------- |
| MEDIUM | IPython/core/magic.py | 44 | # ----------------------------------------------------------------------------- |
| MEDIUM | IPython/core/magic.py | 58 | # ----------------------------------------------------------------------------- |
| MEDIUM | IPython/core/magic.py | 60 | # ----------------------------------------------------------------------------- |
| 553 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | IPython/core/profiledir.py | 186 | def create_profile_dir_by_name(cls, path, name=u'default', config=None): |
| LOW | IPython/core/formatters.py | 737 | def _singleton_printers_default(self): |
| LOW | IPython/core/formatters.py | 752 | def _deferred_printers_default(self): |
| LOW | IPython/core/inputtransformer2.py | 234 | def find_end_of_continued_line(lines, start_line: int): |
| LOW | IPython/core/tbtools.py | 220 | def _simple_format_traceback_lines( |
| LOW | IPython/core/tbtools.py | 344 | def variables_in_executing_piece(self) -> list[Any]: |
| LOW | IPython/core/tbtools.py | 463 | def get_parts_of_chained_exception( |
| LOW | IPython/core/tbtools.py | 476 | def prepare_chained_exception_message( |
| LOW | IPython/core/guarded_eval.py | 150 | def _has_original_dunder_external( |
| LOW | IPython/core/guarded_eval.py | 535 | def _ipython_key_completions_(self): |
| LOW | IPython/core/guarded_eval.py | 556 | def _validate_policy_overrides( |
| LOW | IPython/core/guarded_eval.py | 741 | def _is_instance_attribute_assignment( |
| LOW | IPython/core/guarded_eval.py | 754 | def _get_coroutine_attributes() -> dict[str, Optional[object]]: |
| LOW | IPython/core/guarded_eval.py | 1475 | def _create_duck_for_heap_type(duck_type): |
| LOW | IPython/core/doctb.py | 279 | def format_exception_as_a_whole( |
| LOW | IPython/core/completer.py | 1445 | def _match_number_in_dict_key_prefix(prefix: str) -> Union[str, None]: |
| LOW | IPython/core/completer.py | 1722 | def back_unicode_name_matcher(context: CompletionContext): |
| LOW | IPython/core/completer.py | 1733 | def back_unicode_name_matches(text: str) -> tuple[str, Sequence[str]]: |
| LOW | IPython/core/completer.py | 2587 | def _determine_completion_context(self, line): |
| LOW | IPython/core/completer.py | 2618 | def _is_completing_in_cli_context(self, text: str) -> bool: |
| LOW | IPython/core/completer.py | 2841 | def _default_arguments_from_docstring(self, doc): |
| LOW | IPython/core/completer.py | 1055 | def _policy_overrides_changed(self, _change): |
| LOW | IPython/core/completer.py | 1208 | def _strip_code_before_operator(self, code: str) -> str: |
| LOW | IPython/core/completer.py | 3220 | def dispatch_custom_completer(self, text): |
| LOW | IPython/core/ultratb.py | 741 | def format_exception_as_a_whole( |
| LOW | IPython/core/debugger.py | 1062 | def _is_in_decorator_internal_and_should_skip(self, frame): |
| LOW | IPython/core/debugger.py | 1074 | def _cached_one_parent_frame_debuggerskip(self, frame): |
| LOW | IPython/core/application.py | 144 | def _config_file_name_default(self): |
| LOW | IPython/core/application.py | 147 | def _config_file_name_changed(self, change): |
| LOW | IPython/core/application.py | 158 | def _config_file_paths_default(self): |
| LOW | IPython/core/application.py | 167 | def _extra_config_file_changed(self, change): |
| LOW | IPython/core/application.py | 470 | def stage_default_config_file(self): |
| LOW | IPython/core/extensions.py | 127 | def _call_load_ipython_extension(self, mod): |
| LOW | IPython/core/extensions.py | 132 | def _call_unload_ipython_extension(self, mod): |
| LOW | IPython/core/displaypub.py | 68 | def _setup_execution_tracking(self): |
| LOW | IPython/core/pylabtools.py | 455 | def _matplotlib_manages_backends() -> bool: |
| LOW | IPython/core/pylabtools.py | 481 | def _list_matplotlib_backends_and_gui_loops() -> list[str]: |
| LOW | IPython/core/pylabtools.py | 505 | def _convert_gui_to_matplotlib(gui: str | None) -> str | None: |
| LOW | IPython/core/pylabtools.py | 511 | def _convert_gui_from_matplotlib(gui: str | None) -> str | None: |
| LOW | IPython/core/interactiveshell.py | 3470 | def _format_exception_for_storage( |
| LOW | IPython/core/interactiveshell.py | 466 | def _sphinxify_docstring_changed(self, change): |
| LOW | IPython/core/interactiveshell.py | 477 | def _enable_html_pager_changed(self, change): |
| LOW | IPython/core/interactiveshell.py | 498 | def input_transformers_cleanup(self): |
| LOW | IPython/core/oinspect.py | 1092 | def _source_contains_docstring(src, doc): |
| LOW | IPython/core/profileapp.py | 216 | def _copy_config_files_default(self): |
| LOW | IPython/core/profileapp.py | 289 | def stage_default_config_file(self): |
| LOW | IPython/core/displayhook.py | 100 | def semicolon_at_end_of_expression(expression): |
| LOW | IPython/core/magic_arguments.py | 105 | def _format_action_invocation(self, action): |
| LOW | IPython/core/history.py | 721 | def _switch_to_memory_history(self) -> None: |
| LOW | IPython/core/history.py | 743 | def _restart_thread_if_stopped(self) -> None: |
| LOW | IPython/core/history.py | 259 | def _default_connection_options(self) -> dict[str, bool]: |
| LOW | IPython/core/magics/basic.py | 673 | def _get_kernel_language_info(self) -> dict | None: |
| LOW | IPython/core/magics/packaging.py | 36 | def _get_conda_like_executable(command): |
| LOW | IPython/terminal/ptutils.py | 91 | def _adjust_completion_text_based_on_context(text, body, offset): |
| LOW | IPython/terminal/prompts.py | 54 | def continuation_prompt_tokens( |
| LOW | IPython/terminal/prompts.py | 104 | def continuation_prompt_tokens(self, width=None): |
| LOW | IPython/terminal/interactiveshell.py | 78 | def _backward_compat_continuation_prompt_tokens( |
| LOW | IPython/terminal/interactiveshell.py | 353 | def _highlighting_style_changed(self, change): |
| LOW | IPython/terminal/interactiveshell.py | 395 | def _displayhook_class_default(self): |
| LOW | IPython/terminal/interactiveshell.py | 472 | def _llm_prefix_from_history_changed(self, change): |
| 397 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | setupbase.py | 20 | |
| LOW | setupbase.py | 22 | |
| LOW | setupbase.py | 25 | |
| LOW | setupbase.py | 26 | |
| LOW | setup.py | 19 | |
| LOW | _build_meta.py | 2 | |
| LOW | tools/tests/embed/embed_flufl.py | 2 | |
| LOW | IPython/__init__.py | 53 | |
| LOW | IPython/__init__.py | 55 | |
| LOW | IPython/__init__.py | 56 | |
| LOW | IPython/__init__.py | 58 | |
| LOW | IPython/__init__.py | 59 | |
| LOW | IPython/display.py | 14 | |
| LOW | IPython/display.py | 15 | |
| LOW | IPython/display.py | 15 | |
| LOW | IPython/display.py | 15 | |
| LOW | IPython/display.py | 15 | |
| LOW | IPython/display.py | 15 | |
| LOW | IPython/display.py | 15 | |
| LOW | IPython/display.py | 15 | |
| LOW | IPython/display.py | 15 | |
| LOW | IPython/display.py | 15 | |
| LOW | IPython/display.py | 15 | |
| LOW | IPython/display.py | 15 | |
| LOW | IPython/display.py | 15 | |
| LOW | IPython/display.py | 15 | |
| LOW | IPython/display.py | 15 | |
| LOW | IPython/display.py | 15 | |
| LOW | IPython/display.py | 15 | |
| LOW | IPython/display.py | 15 | |
| LOW | IPython/display.py | 15 | |
| LOW | IPython/display.py | 15 | |
| LOW | IPython/display.py | 15 | |
| LOW | IPython/display.py | 15 | |
| LOW | IPython/display.py | 15 | |
| LOW | IPython/display.py | 15 | |
| LOW | IPython/display.py | 15 | |
| LOW | IPython/display.py | 41 | |
| LOW | IPython/core/magic.py | 1 | |
| LOW | IPython/core/magic.py | 27 | |
| LOW | IPython/core/magic.py | 30 | |
| LOW | IPython/core/events.py | 16 | |
| LOW | IPython/core/display_functions.py | 10 | |
| LOW | IPython/core/splitinput.py | 11 | |
| LOW | IPython/core/completer.py | 180 | |
| LOW | IPython/core/ultratb.py | 69 | |
| LOW | IPython/core/ultratb.py | 79 | |
| LOW | IPython/core/ultratb.py | 79 | |
| LOW | IPython/core/ultratb.py | 87 | |
| LOW | IPython/core/ultratb.py | 88 | |
| LOW | IPython/core/ultratb.py | 89 | |
| LOW | IPython/core/ultratb.py | 94 | |
| LOW | IPython/core/display.py | 20 | |
| LOW | IPython/core/debugger.py | 124 | |
| LOW | IPython/core/tips.py | 118 | |
| LOW | IPython/core/extensions.py | 7 | |
| LOW | IPython/core/extensions.py | 8 | |
| LOW | IPython/core/extensions.py | 13 | |
| LOW | IPython/core/displaypub.py | 24 | |
| LOW | IPython/core/interactiveshell.py | 90 | |
| 146 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | IPython/paths.py | 19 | |
| LOW | IPython/core/prefilter.py | 606 | |
| LOW | IPython/core/magic.py | 428 | |
| LOW | IPython/core/magic.py | 687 | |
| LOW | IPython/core/formatters.py | 458 | |
| LOW | IPython/core/formatters.py | 573 | |
| LOW | IPython/core/inputtransformer2.py | 217 | |
| LOW | IPython/core/inputtransformer2.py | 598 | |
| LOW | IPython/core/inputtransformer2.py | 646 | |
| LOW | IPython/core/inputtransformer2.py | 89 | |
| LOW | IPython/core/inputtransformer2.py | 115 | |
| LOW | IPython/core/inputtransformer2.py | 359 | |
| LOW | IPython/core/tbtools.py | 131 | |
| LOW | IPython/core/guarded_eval.py | 150 | |
| LOW | IPython/core/guarded_eval.py | 595 | |
| LOW | IPython/core/guarded_eval.py | 765 | |
| LOW | IPython/core/guarded_eval.py | 1211 | |
| LOW | IPython/core/guarded_eval.py | 1274 | |
| LOW | IPython/core/guarded_eval.py | 1348 | |
| LOW | IPython/core/page.py | 128 | |
| LOW | IPython/core/doctb.py | 325 | |
| LOW | IPython/core/shellapp.py | 317 | |
| LOW | IPython/core/shellapp.py | 385 | |
| LOW | IPython/core/shellapp.py | 458 | |
| LOW | IPython/core/logger.py | 68 | |
| LOW | IPython/core/completer.py | 1487 | |
| LOW | IPython/core/completer.py | 1128 | |
| LOW | IPython/core/completer.py | 1208 | |
| LOW | IPython/core/completer.py | 1254 | |
| LOW | IPython/core/completer.py | 2311 | |
| LOW | IPython/core/completer.py | 2499 | |
| LOW | IPython/core/completer.py | 2653 | |
| LOW | IPython/core/completer.py | 2770 | |
| LOW | IPython/core/completer.py | 2816 | |
| LOW | IPython/core/completer.py | 2867 | |
| LOW | IPython/core/completer.py | 2907 | |
| LOW | IPython/core/completer.py | 3220 | |
| LOW | IPython/core/completer.py | 3350 | |
| LOW | IPython/core/completer.py | 3573 | |
| LOW | IPython/core/ultratb.py | 290 | |
| LOW | IPython/core/ultratb.py | 814 | |
| LOW | IPython/core/display.py | 365 | |
| LOW | IPython/core/display.py | 869 | |
| LOW | IPython/core/debugger.py | 875 | |
| LOW | IPython/core/debugger.py | 1138 | |
| LOW | IPython/core/debugger.py | 1204 | |
| LOW | IPython/core/debugger.py | 419 | |
| LOW | IPython/core/application.py | 384 | |
| LOW | IPython/core/interactiveshell.py | 1458 | |
| LOW | IPython/core/interactiveshell.py | 1568 | |
| LOW | IPython/core/interactiveshell.py | 1590 | |
| LOW | IPython/core/interactiveshell.py | 1660 | |
| LOW | IPython/core/interactiveshell.py | 1704 | |
| LOW | IPython/core/interactiveshell.py | 1921 | |
| LOW | IPython/core/interactiveshell.py | 2164 | |
| LOW | IPython/core/interactiveshell.py | 2554 | |
| LOW | IPython/core/interactiveshell.py | 2932 | |
| LOW | IPython/core/interactiveshell.py | 3000 | |
| LOW | IPython/core/interactiveshell.py | 3470 | |
| LOW | IPython/core/interactiveshell.py | 3589 | |
| 72 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | setup.py | 37 | except Exception: |
| LOW | tools/update_whatsnew.py | 45 | except Exception as e: |
| LOW | IPython/core/prefilter.py | 626 | except Exception: |
| MEDIUM | IPython/core/magic.py | 660 | print("Error in arguments:") |
| LOW | IPython/core/completerlib.py | 96 | except Exception: |
| LOW | IPython/core/formatters.py | 271 | except Exception as e: |
| LOW | IPython/core/formatters.py | 286 | except Exception: |
| LOW | IPython/core/formatters.py | 709 | except Exception as e: |
| LOW | IPython/core/guarded_eval.py | 1228 | except Exception as e: |
| LOW | IPython/core/guarded_eval.py | 1234 | except Exception as e: |
| LOW | IPython/core/guarded_eval.py | 1236 | except Exception as e: |
| LOW | IPython/core/guarded_eval.py | 679 | except Exception: |
| LOW | IPython/core/guarded_eval.py | 910 | except Exception: |
| LOW | IPython/core/guarded_eval.py | 918 | except Exception: |
| LOW | IPython/core/guarded_eval.py | 930 | except Exception: |
| LOW | IPython/core/guarded_eval.py | 1137 | except Exception: |
| LOW | IPython/core/guarded_eval.py | 1285 | except Exception: |
| LOW | IPython/core/doctb.py | 214 | except Exception: |
| LOW | IPython/core/shellapp.py | 301 | except Exception: |
| MEDIUM | IPython/core/completer.py | 2564 | print("Error detecting if completing a non-finished string :", e, '|') |
| LOW | IPython/core/completer.py | 2561 | except Exception as e: |
| LOW | IPython/core/completer.py | 2570 | except Exception as e: |
| LOW | IPython/core/completer.py | 1296 | except Exception: |
| LOW | IPython/core/completer.py | 1390 | except Exception as e: |
| LOW | IPython/core/completer.py | 1411 | except Exception: |
| LOW | IPython/core/completer.py | 1579 | except Exception: |
| LOW | IPython/core/completer.py | 2650 | except Exception: |
| MEDIUM | IPython/core/completer.py | 3411 | print("Error in Jedi getting type of ", jm) |
| LOW | IPython/core/completer.py | 1166 | except Exception as e: |
| LOW | IPython/core/completer.py | 3001 | except Exception: |
| LOW | IPython/core/completer.py | 3006 | except Exception: |
| LOW | IPython/core/completer.py | 3409 | except Exception: |
| LOW | IPython/core/ultratb.py | 604 | except Exception: |
| LOW | IPython/core/display.py | 60 | except Exception: |
| LOW | IPython/core/application.py | 377 | except Exception: |
| LOW | IPython/core/interactiveshell.py | 820 | except Exception: |
| LOW | IPython/core/interactiveshell.py | 2227 | except Exception: |
| LOW | IPython/core/interactiveshell.py | 3194 | except Exception: |
| LOW | IPython/core/interactiveshell.py | 3277 | except Exception: |
| LOW | IPython/core/interactiveshell.py | 3381 | except Exception: |
| LOW | IPython/core/interactiveshell.py | 3519 | except Exception: |
| LOW | IPython/core/interactiveshell.py | 3578 | except Exception as e: |
| LOW | IPython/core/interactiveshell.py | 3932 | except Exception: |
| LOW | IPython/core/interactiveshell.py | 4079 | except Exception as e: |
| LOW | IPython/core/oinspect.py | 223 | except Exception: |
| LOW | IPython/core/oinspect.py | 546 | except Exception: |
| LOW | IPython/core/oinspect.py | 964 | except Exception: |
| LOW | IPython/core/oinspect.py | 993 | except Exception: |
| LOW | IPython/core/oinspect.py | 1102 | except Exception: |
| LOW | IPython/core/profileapp.py | 255 | except Exception: |
| LOW | IPython/core/debugger_backport.py | 131 | except Exception: |
| LOW | IPython/core/debugger_backport.py | 139 | except Exception: |
| MEDIUM | IPython/core/history.py | 623 | def _dir_hist_default(self) -> list[Path]: |
| LOW | IPython/core/history.py | 725 | except Exception: |
| LOW | IPython/core/history.py | 1167 | except Exception as e: |
| LOW | IPython/core/magics/execution.py | 531 | except Exception: |
| LOW | IPython/core/magics/execution.py | 1000 | except Exception: |
| LOW | IPython/core/magics/execution.py | 1403 | except Exception as e: |
| LOW | IPython/core/magics/execution.py | 1422 | except Exception as e: |
| LOW | IPython/core/magics/config.py | 139 | except Exception as e: |
| 43 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | IPython/core/tbtools.py | 0 | convert a structured traceback (a list) to a string. |
| HIGH | IPython/core/ultratb.py | 0 | convert a structured traceback (a list) to a string. |
| HIGH | IPython/core/ultratb.py | 0 | convert a structured traceback (a list) to a string. |
| HIGH | IPython/extensions/tests/test_deduperreload.py | 0 | def factorial(n): def fn(sdfsdf): print(sdfsdf) if n < 0: return "factorial is not defined for negative numbers." elif n |
| HIGH | IPython/extensions/tests/test_deduperreload.py | 0 | def factorial(n): def fn(sdfsdf): print(sdfsdf) if n < 0: return "factorial is not defined for negative numbers." elif n |
| HIGH | IPython/extensions/tests/test_deduperreload.py | 0 | def factorial(n): def fn(sdfsdf): print(sdfsdf) if n < 0: return "factorial is not defined for negative numbers." elif n |
| HIGH | IPython/extensions/tests/test_deduperreload.py | 0 | async def sleep(): print(f'time: {time.time() - start:.2f}') await asyncio.sleep(1) |
| HIGH | IPython/extensions/tests/test_deduperreload.py | 0 | async def sleep(): print(f'time: {time.time() - start:.2f}') await asyncio.sleep(1) |
| HIGH | IPython/extensions/tests/test_deduperreload.py | 0 | async def sleep(): print(f'time: {time.time() - start:.2f}') await asyncio.sleep(1) |
| HIGH | IPython/extensions/tests/test_deduperreload.py | 0 | class c: x = 9 def c(): return 13 class d: def foo(): return 10 |
| HIGH | IPython/extensions/tests/test_deduperreload.py | 0 | class c: x = 9 def c(): return 13 class d: def foo(): return 10 |
| HIGH | IPython/extensions/tests/test_deduperreload.py | 0 | class c: x = 9 def c(): return 13 class d: def foo(): return 10 |
| HIGH | IPython/extensions/tests/test_deduperreload.py | 0 | class foo: @classmethod def bar(cls): return 0 @classmethod def foo(cls): return 42 + cls.bar() foo = foo.foo |
| HIGH | IPython/extensions/tests/test_deduperreload.py | 0 | class foo: @classmethod def bar(cls): return 0 @classmethod def foo(cls): return 42 + cls.bar() foo = foo.foo |
| HIGH | IPython/extensions/tests/test_deduperreload.py | 0 | class foo: @classmethod def bar(cls): return 0 @classmethod def foo(cls): return 42 + cls.bar() foo = foo.foo |
| HIGH | IPython/extensions/tests/test_deduperreload.py | 0 | class foo: @classmethod def bar(cls): return 0 @classmethod def foo(cls): return 42 + cls.bar() foo = foo.foo |
| HIGH | IPython/extensions/tests/test_deduperreload.py | 0 | class foo: @classmethod def bar(cls): return 0 @classmethod def foo(cls): return 42 + cls.bar() foo = foo.foo |
| HIGH | tests/test_ipunittest.py | 0 | in [20]: print(1) 1 in [26]: for i in range(4): ....: print(i) ....: ....: 0 1 2 3 in [27]: 3+4 out[27]: 7 |
| HIGH | tests/test_ipunittest.py | 0 | in [20]: print(1) 1 in [26]: for i in range(4): ....: print(i) ....: ....: 0 1 2 3 in [27]: 3+4 out[27]: 7 |
| HIGH | tests/test_ipunittest.py | 0 | in [20]: print(1) 1 in [26]: for i in range(4): ....: print(i) ....: ....: 0 1 2 3 in [27]: 3+4 out[27]: 7 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | setupbase.py | 48 | # Create a dict with the basic information |
| MEDIUM | tools/gen_latex_symbols.py | 81 | # This file is autogenerated from the file: |
| MEDIUM | IPython/core/magic.py | 321 | # Create the actual decorators for public use |
| MEDIUM | IPython/core/magic.py | 540 | # Create the new method in the user_magics and register it in the |
| MEDIUM | IPython/core/historyapp.py | 74 | # Create the new history database. |
| MEDIUM | IPython/core/completer.py | 3232 | # Create a little structure to pass all the relevant information about |
| MEDIUM | IPython/core/debugger.py | 116 | # This file is licensed under the PSF license. |
| MEDIUM | IPython/core/interactiveshell.py | 1245 | # Create the namespace where the user will operate. user_ns is |
| MEDIUM | IPython/core/latex_symbols.py | 7 | # This file is autogenerated from the file: |
| MEDIUM | IPython/core/magics/script.py | 201 | # Create the event loop in which to run script magics |
| MEDIUM | IPython/terminal/ipapp.py | 296 | # Create an InteractiveShell instance. |
| MEDIUM | IPython/utils/_process_win32_controller.py | 274 | # Create the process object |
| MEDIUM | IPython/utils/_process_win32_controller.py | 411 | # Create a thread for each input/output handle |
| MEDIUM | IPython/testing/plugin/ipdoctest.py | 189 | # Create an Example, and add it to the list. |
| MEDIUM | tests/test_zzz_autoreload.py | 989 | # Create a test module with only 'foo' attribute |
| MEDIUM | tests/test_zzz_autoreload.py | 998 | # Create a tracker |
| MEDIUM | tests/test_zzz_autoreload.py | 898 | # Create a test module with both 'foo' and 'bar' attributes |
| MEDIUM | tests/test_zzz_autoreload.py | 915 | # Create a tracker |
| MEDIUM | tests/test_zzz_autoreload.py | 945 | # Create a test module |
| MEDIUM | tests/test_zzz_autoreload.py | 962 | # Create a tracker |
| MEDIUM | tests/test_zzz_autoreload.py | 1022 | # Create a test module |
| MEDIUM | tests/test_zzz_autoreload.py | 1064 | # Create a test module |
| MEDIUM | tests/test_zzz_autoreload.py | 1106 | # Create a tracker |
| MEDIUM | tests/test_zzz_autoreload.py | 1138 | # Create a tracker |
| MEDIUM | tests/test_prefilter.py | 112 | # Create a callable broken object |
| MEDIUM | tests/test_completer.py | 1544 | # Create a subclass in __main__ (untrusted namespace) |
| MEDIUM | tests/test_application.py | 37 | # Create the config file, so it tries to load it. |
| MEDIUM | tests/test_application.py | 63 | # Create the config file, so it tries to load it. |
| MEDIUM | examples/Embedding/embed_class_short.py | 43 | # Define a dummy ipshell() so the same code doesn't crash inside an |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | setup.py | 84 | "cd docs/man && python -m gzip --best ipython.1", |
| HIGH | IPython/core/displayhook.py | 234 | self.shell.push({'_':self._, |
| HIGH | IPython/core/displayhook.py | 243 | self.shell.push(to_main, interactive=False) |
| HIGH | IPython/core/history.py | 1026 | self.shell.push(to_main, interactive=False) |
| HIGH | IPython/extensions/autoreload.py | 844 | self.shell.push({top_name: top_module}) |
| HIGH | tests/test_interactiveshell.py | 233 | ip.push(myvars, interactive=False) |
| HIGH | tests/test_interactiveshell.py | 789 | ip.push({"f": f}) |
| HIGH | tests/test_interactiveshell.py | 806 | ip.push({"f": f}) |
| HIGH | tests/test_interactiveshell.py | 820 | ip.push({"a": 10}) |
| HIGH | tests/test_interactiveshell.py | 883 | ip.push({"Integer": Integer}) |
| HIGH | tests/test_interactiveshell.py | 907 | ip.push({"f": f}) |
| HIGH | tests/fake_ext_dir/daft_extension.py | 10 | ip.push(some_vars) |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | pyproject.toml | 421 | # "B", # flake8-bugbear |
| LOW | pyproject.toml | 441 | # "UP006", # 1 [*] Use `tuple` instead of `t.Tuple` for type annotation |
| LOW | pyproject.toml | 461 | "UP034", # 1 [*] Avoid extraneous parentheses |
| LOW | setup.py | 1 | # -*- coding: utf-8 -*- |
| LOW | tools/configure-git-blame-ignore-revs.sh | 1 | #!/bin/sh |
| LOW | IPython/__init__.py | 1 | # PYTHON_ARGCOMPLETE_OK |
| LOW | IPython/__main__.py | 1 | # PYTHON_ARGCOMPLETE_OK |
| LOW | IPython/core/prefilter.py | 41 | |
| LOW | IPython/core/magic.py | 41 | |
| LOW | IPython/core/completerlib.py | 1 | # encoding: utf-8 |
| LOW | IPython/core/release.py | 1 | # -*- coding: utf-8 -*- |
| LOW | IPython/core/completer.py | 621 | # which was not explicitly visible as an argument of the matcher, making any refactor |
| LOW | IPython/core/completer.py | 3781 | - list of potential completions, empty tuple otherwise) |
| LOW | IPython/core/ultratb.py | 561 | call = theme_table[self._theme_name].format( |
| LOW | IPython/core/tips.py | 1 | from datetime import datetime |
| LOW | IPython/core/tips.py | 21 | # [2/8/25, 23:29:05] Fernando Perez: |
| LOW | IPython/core/interactiveshell.py | 1241 | #------------------------------------------------------------------------- |
| LOW | IPython/core/interactiveshell.py | 1261 | # Datum: Freitag 01 Oktober 2004 04:45:34 nachmittags/abends |
| LOW | IPython/core/interactiveshell.py | 1281 | if (user_ns is not None) or (user_module is not None): |
| LOW | IPython/core/interactiveshell.py | 1301 | # To avoid keeping stale modules around (we only need the one from the |
| LOW | IPython/core/interactiveshell.py | 1361 | user_module.__dict__.setdefault('__builtin__', builtin_mod) |
| LOW | IPython/core/interactiveshell.py | 1401 | # user_ns, and we sync that contents into user_ns_hidden so that these |
| LOW | IPython/core/interactiveshell.py | 1841 | # The universal alternative is to traverse the mro manually |
| LOW | IPython/core/interactiveshell.py | 2721 | # codes and signals, ipython uses negative numbers. For instance |
| LOW | IPython/core/displayhook.py | 181 | md_dict : dict (optional) |
| LOW | IPython/core/magics/logging.py | 1 | """Implementation of magic functions for IPython's own logging. |
| LOW | IPython/core/magics/config.py | 1 | """Implementation of configuration-related magic functions. |
| LOW | IPython/core/magics/pylab.py | 1 | """Implementation of magic functions for matplotlib/pylab support. |
| LOW | IPython/core/magics/code.py | 1 | """Implementation of code management magic functions. |
| LOW | IPython/core/magics/display.py | 1 | """Simple magics for display formats""" |
| LOW | IPython/core/magics/extension.py | 1 | """Implementation of magic functions for the extension machinery. |
| LOW | IPython/core/magics/namespace.py | 1 | """Implementation of namespace-related magic functions. |
| LOW | IPython/core/magics/auto.py | 1 | """Implementation of magic functions that control various automatic behaviors. |
| LOW | IPython/core/magics/history.py | 1 | """Implementation of magic functions related to History. |
| LOW | IPython/sphinxext/ipython_directive.py | 521 | # `processed_output` is equal to '', then the adding it to `ret` |
| LOW | IPython/sphinxext/ipython_directive.py | 541 | # |
| LOW | IPython/terminal/pt_inputhooks/glut.py | 1 | """GLUT Input hook for interactive use with prompt_toolkit |
| LOW | IPython/terminal/pt_inputhooks/glut.py | 121 | # and switch between a short and long sleep time. Here are some |
| LOW | IPython/terminal/pt_inputhooks/gtk.py | 1 | # Code borrowed from python-prompt-toolkit examples |
| LOW | IPython/terminal/pt_inputhooks/tk.py | 1 | # Code borrowed from ptpython |
| LOW | IPython/terminal/pt_inputhooks/pyglet.py | 41 | window.dispatch_events() |
| LOW | IPython/terminal/pt_inputhooks/wx.py | 121 | ea = wx.EventLoopActivator(evtloop) |
| LOW | IPython/terminal/shortcuts/filters.py | 221 | "is_cursor_at_the_end_of_line": is_cursor_at_the_end_of_line, |
| LOW | IPython/utils/module_paths.py | 1 | """Utility functions for finding modules |
| LOW | IPython/utils/_process_posix.py | 101 | enc = DEFAULT_ENCODING |
| LOW | IPython/extensions/autoreload.py | 141 | # Copyright (C) 2012 The IPython Development Team |
| LOW | IPython/lib/__init__.py | 1 | # encoding: utf-8 |
| LOW | tests/test_pycolorize.py | 1 | # coding: utf-8 |
| LOW | tests/test_debug_magic.py | 1 | """Test embedding of IPython""" |
| LOW | tests/test_compilerop.py | 1 | # coding: utf-8 |
| LOW | tests/test_backgroundjobs.py | 1 | """Tests for pylab tools module.""" |
| LOW | tests/test_async_helpers.py | 61 | test_cases = [] |
| LOW | tests/nonascii.py | 1 | # coding: iso-8859-5 |
| LOW | tests/test_importstring.py | 1 | """Tests for IPython.utils.importstring.""" |
| LOW | tests/nonascii2.py | 1 | # coding: iso-8859-5 |
| LOW | docs/source/conf.py | 61 | |
| LOW | docs/source/conf.py | 101 | |
| LOW | docs/source/conf.py | 141 | ] |
| LOW | examples/Embedding/embed_class_long.py | 81 | |
| LOW | .github/workflows/downstream.yml | 61 | env: |
| 1 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | IPython/core/magic.py | 733 | # Check if we have more than one argument to warrant extra processing: |
| LOW | IPython/core/guarded_eval.py | 192 | # Check if the method comes from this trusted base class |
| LOW | IPython/core/completer.py | 2636 | # Check if first token is a known alias |
| LOW | IPython/core/tips.py | 116 | # Check if argcomplete is installed and add tip |
| LOW | IPython/core/interactiveshell.py | 3498 | # Check if the exception (or its context) is an ExceptionGroup. |
| LOW | IPython/core/interactiveshell.py | 4060 | if os.path.isfile(tgt): # Read file |
| LOW | IPython/core/interactiveshell.py | 635 | # Check if we're in a virtualenv, and set up sys.path. |
| LOW | IPython/core/magics/basic.py | 634 | # Check if this execution_count is in exceptions (current session) |
| LOW | IPython/core/magics/packaging.py | 55 | # Check if there is a conda executable in the same directory as the Python executable. |
| LOW | IPython/core/magics/history.py | 164 | # Check if output to specific file was requested. |
| LOW | IPython/utils/text.py | 415 | # Check if all characters in this position are the same |
| LOW | IPython/extensions/autoreload.py | 504 | # Check if there's already a different mapping for the same resolved_name from a different original_name |
| LOW | tests/test_magic.py | 1034 | # Check if notebook is trusted |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | setup.py | 24 | # This check is also made in IPython/__init__, don't forget to update both when |
| LOW | setup.py | 24 | # This check is also made in IPython/__init__, don't forget to update both when |
| LOW | IPython/__init__.py | 29 | # Don't forget to also update setup.py when this changes! |
| MEDIUM | IPython/core/formatters.py | 637 | how to write pretty printers. Here is a simple example:: |
| LOW | IPython/core/magics/code.py | 571 | close it (don't forget to save it!). |
| MEDIUM | IPython/terminal/embed.py | 369 | Here is a simple example:: |
| MEDIUM | IPython/lib/latextools.py | 39 | # unicode pretty printing is used, you can use ["matplotlib"]. |
| MEDIUM | examples/Embedding/embed_class_long.py | 91 | # - A call-specific header string, which you can use to indicate where in the |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | IPython/core/tbtools.py | 132 | """Hopefully pretty robust repr equivalent.""" |
| LOW | IPython/core/completer.py | 1302 | # Note: ideally we would just return words here and the prefix |
| LOW | IPython/core/interactiveshell.py | 956 | # but others can symlink *to* the venv Python, so we can't just use sys.executable. |
| LOW | IPython/core/interactiveshell.py | 2664 | # pexpect or pipes to read from. Users can always just call |
| LOW | IPython/core/magics/script.py | 206 | # just create an event loop |
| LOW | IPython/sphinxext/ipython_directive.py | 790 | # exception, but for now, we just set the backend to 'agg'. |
| LOW | IPython/terminal/embed.py | 92 | # Ask-exit does not really ask, it just set internals flags to exit |
| LOW | IPython/utils/ipstruct.py | 110 | # I can't simply call hasattr here because it calls getattr, which |
| LOW | IPython/utils/timing.py | 69 | # There is no distinction of user/system time under windows, so we just use |
| MEDIUM | tests/test_debugger.py | 713 | """Create a comprehensive module hierarchy for testing all debugger commands.""" |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/test_tokenutil.py | 48 | def test_function(): |
| LOW | tests/test_completer.py | 2107 | " def my_method(self) -> str:", |
| LOW | tests/test_completer.py | 2119 | " def my_method(self) -> str:", |
| LOW | tests/test_completer.py | 2131 | " def my_method(self) -> str:", |
| LOW | tests/test_completer.py | 2143 | " def my_method(self):", |
| LOW | tests/test_completer.py | 2229 | " def my_method(self):", |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | IPython/core/guarded_eval.py | 789 | The purpose of this function is to guard against unwanted side-effects; |