Duplicated definition of built-in magic aliases after %reset
See original GitHub issueWhen running %reset -f
in Jupyter notebook or Spyder, the following message will be printed.
ERROR:root:Invalid alias: The name clear can't be aliased because it is another magic command.
ERROR:root:Invalid alias: The name more can't be aliased because it is another magic command.
ERROR:root:Invalid alias: The name less can't be aliased because it is another magic command.
ERROR:root:Invalid alias: The name man can't be aliased because it is another magic command.
However, running %reset -f
in IPython itself is just fine.
I started experiencing this after upgrading to IPython 7.3.0, and I believe that this behavior was from the change #11528. Maybe those aliases should only be redefined when running in the IPython shell, not in Jupyter or Spyder as a kernel.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:11
- Comments:19 (7 by maintainers)
Top Results From Across the Web
Get rid of duplicate contacts on iPhone - Apple Support
Below My Card, tap Duplicates Found. Tap individual contacts to review and merge them, or tap Merge All to merge all duplicate contacts....
Read more >Property names should not be duplicated within a class or ...
JavaScript allows duplicate property names in classes and object literals, but only the last instance of a duplicated name determines the actual value...
Read more >Duplicate alias - Common causes and quick fixes - Opster
When a plugin is removed, you will need to restart every Elasticsearch node in order to complete the removal process. Common issues. Managing...
Read more >Removing duplicates in lists - python - Stack Overflow
This usually means that they have to be immutable. If you have to deal with items that are not hashable (e.g. list objects),...
Read more >3. Data model — Python 3.11.1 documentation
Note that the current implementation only supports function attributes on user-defined functions. Function attributes on built-in functions may be supported in ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Try this: %reset -s -f
In Spyder, using ipython 7.5, every execution still shows this at the beginning: ERROR:root:Invalid alias: The name clear can’t be aliased because it is another magic command. ERROR:root:Invalid alias: The name more can’t be aliased because it is another magic command. ERROR:root:Invalid alias: The name less can’t be aliased because it is another magic command. ERROR:root:Invalid alias: The name man can’t be aliased because it is another magic command.
My new conda update procedure: conda update --all conda install ipython=7.2.0
I’d like to stay up-to-date in ipython. However, continued use of version 7.2.0 seems like the “lesser of evils”.