question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Terminal title is not reset after exiting IPython

See original GitHub issue

By default, IPython changes the terminal title to IPython: {cwd}. However, this change is not reset to the original terminal title after exiting IPython (I’m on macOS High Sierra).

Here’s the output of IPython.sys_info():

{'commit_hash': 'd86648c5d',
 'commit_source': 'installation',
 'default_encoding': 'UTF-8',
 'ipython_path': '/Users/clemens/anaconda/lib/python3.6/site-packages/IPython',
 'ipython_version': '6.1.0',
 'os_name': 'posix',
 'platform': 'Darwin-17.0.0-x86_64-i386-64bit',
 'sys_executable': '/Users/clemens/anaconda/bin/python',
 'sys_platform': 'darwin',
 'sys_version': '3.6.3 |Anaconda, Inc.| (default, Oct  6 2017, 12:04:38) \n'
                '[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)]'}

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:14 (11 by maintainers)

github_iconTop GitHub Comments

4reactions
cbrnrcommented, Oct 29, 2018

I’d still vote for changing the default to c.TerminalInteractiveShell.term_title = False given that the title can’t be easily reset.

1reaction
eirnymcommented, Oct 12, 2018

Actually, Vim does reset it by pushing and restoring it afterwards

Read more comments on GitHub >

github_iconTop Results From Across the Web

Stop IPython from changing terminal title - Stack Overflow
In this config file you can set: ## Automatically set the terminal title c.TerminalInteractiveShell.term_title = False.
Read more >
Terminal IPython options — IPython 8.7.0 documentation
Execute the given command string. Run the file referenced by the PYTHONSTARTUP environment variable at IPython startup. List of files to run at ......
Read more >
How to set a fixed title for a terminal in Mac? - Ask Different
Open the Preferences for terminal app; Select the profile in use; Select "tab" pane on the right; Uncheck everything except Show activity ...
Read more >
Terminal IPython options - documentation
'ipython foo.py', start an interactive shell after executing the file or command.
Read more >
Change Terminal Title in Mac OS X - Super User
Is there a way to change the title from within a C program? The program I'm thinking about is running animation based on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found