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.

Duplicated definition of built-in magic aliases after %reset

See original GitHub issue

When 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:closed
  • Created 5 years ago
  • Reactions:11
  • Comments:19 (7 by maintainers)

github_iconTop GitHub Comments

11reactions
daniel-lorenzocommented, May 19, 2019

Try this: %reset -s -f

7reactions
texadactylcommented, May 27, 2019

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”.

Read more comments on GitHub >

github_iconTop 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 >

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