python "help" command failed in iPython console
See original GitHub issueIssue Report Checklist
- Searched the issues page for similar reports
- Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
- Reproduced the issue after updating with
conda update spyder
(orpip
, if not using Anaconda) - Could not reproduce inside
jupyter qtconsole
(if console-related) - Tried basic troubleshooting (if a bug/error)
- Restarted Spyder
- Reset preferences with
spyder --reset
- Reinstalled the latest version of Anaconda
- Tried the other applicable steps from the Troubleshooting Guide
- Completed the Problem Description, Steps to Reproduce and Version sections below
Problem Description
What steps reproduce the problem?
- type “?” in ipython console, it shows “help -> Access Python’s own help system”
- type “help()”, it failed with “NameError: name ‘help’ is not defined”
What is the expected output? What do you see instead?
Paste Traceback/Error Below (if applicable)
PASTE TRACEBACK HERE
Versions
- Spyder version: 4.2.1
- Python version: 3.9.1
- Qt version:
- PyQt version:
- Operating System name/version: macOS 10.15.7 (Catalina)
Dependencies
PASTE DEPENDENCIES HERE
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Script working in ipython but not from the command line
Run that from IPython, and then run that from the python on your command line. You will undoubtedly get two different results.
Read more >IPython reference — IPython 3.2.1 documentation
# Try running this code both at the command line and from inside IPython (with # %run example-embed.py) from IPython. config. loader import...
Read more >What to do when things go wrong - The Jupyter Notebook
If you're using a menu shortcut or Anaconda launcher to start it, try opening a terminal or command prompt and running the command...
Read more >Common Illnesses — Spyder 5 documentation
If you receive the message An error occurred while starting the kernel in the IPython Console, Spyder was unable to launch a new...
Read more >IPython console fails when running Python with "-W error"
Disable File | Settings | Build, Execution, Deployment | Console | Use IPython if available to use normal Python console and let me...
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 FreeTop 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
Top GitHub Comments
It looks like
help
is a class object fromlib/python3.9/_sitebuiltins.py
and is made available in thesite.py
module by the definitionbuiltins.help = _sitebuiltins._Helper()
.py2app
uses a stripped-down version ofsite.py
for application builds that does not include this definition. I’ve created a new issue at ronaldoussoren/py2app#337.In the mean time, I’ll create a workaround to resolve this issue.
Thanks a lot for your help @mrclary!