Return whether a text script is running.
(self)
| 2671 | return Completions(error=formatted_exception) |
| 2672 | |
| 2673 | def in_script(self) -> bool: |
| 2674 | """Return whether a text script is running.""" |
| 2675 | return self._current_script_dir is not None |
| 2676 | |
| 2677 | def in_pyscript(self) -> bool: |
| 2678 | """Return whether running inside a Python shell or pyscript.""" |