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.

IPython question mark does not display output

See original GitHub issue

I have lines like:

.. jupyter-execute::
   ?

.. jupyter-execute::
   function?

The output that displays in IPython or Jupyter notebook does not seem to display with jupyter-sphinx. For example:

image

Is there a way to have the output from the IPython ? and ?? display?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
moorepantscommented, Jan 16, 2022

Yes, manually executed then uploaded to github and displayed via nbviewer. So I guess manual execution of the notebook catches the output properly. Thanks.

0reactions
akhmerovcommented, Jan 16, 2022

Can’t confirm using jupyter nbconvert --execute bug.ipynb --to notebook --stdout (bug.ipynb contains a single code cell with ?).

Your notebook already contains outputs; was it not executed manually, e.g. using run all cells or so?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why does question mark not always work in iPython?
There may be some expressions that work, but generally no. I use it most to get information on a function, not an arbitrary...
Read more >
IPython help (?/??) doesn't work in jupyter notebook #2888
Putting a question mark ? either before or after a function should show the help. Two question marks ?? should also show the...
Read more >
Help and Documentation in IPython | Python Data Science ...
For simple functions like this, the double question-mark can give quick insight into the under-the-hood details. If you play with this much, you'll...
Read more >
Python vs IPython — IPython 8.7.0 documentation
A double question mark will try to pull out more information about the object, and if possible display the python source code of...
Read more >
Chapter 1. IPython: Beyond Normal Python - O'Reilly
suffix doesn't display any source code: this is generally because the object in question is not implemented in Python, but in C or...
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