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.

python "help" command failed in iPython console

See original GitHub issue

Issue 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 (or pip, 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?

  1. type “?” in ipython console, it shows “help -> Access Python’s own help system”
  2. 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:closed
  • Created 3 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
mrclarycommented, Feb 22, 2021

It looks like help is a class object from lib/python3.9/_sitebuiltins.py and is made available in the site.py module by the definition builtins.help = _sitebuiltins._Helper(). py2app uses a stripped-down version of site.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.

0reactions
ccordoba12commented, Feb 11, 2021

Thanks a lot for your help @mrclary!

Read more comments on GitHub >

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

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