Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output of ? or ?? is not displayed #194

Closed
Peque opened this issue Jan 16, 2022 · 1 comment
Closed

Output of ? or ?? is not displayed #194

Peque opened this issue Jan 16, 2022 · 1 comment

Comments

@Peque
Copy link

Peque commented Jan 16, 2022

In IPython, you can use ? or ?? to display information about the object like the docstring, signature and type:

In [2]: print??
Docstring:
print(value, ..., sep=' ', end='\n', file=sys.stdout, flush=False)

Prints the values to a stream, or to sys.stdout by default.
Optional keyword arguments:
file:  a file-like object (stream); defaults to the current sys.stdout.
sep:   string inserted between values, default a space.
end:   string appended after the last value, default a newline.
flush: whether to forcibly flush the stream.
Type:      builtin_function_or_method

However, in Jupyter this information is rendered in a box at the bottom instead of bellow the code cell.

Screenshot from 2022-01-16 20-24-57

This means code like this:

.. jupyter-execute::

    print??

Will not render any output in the documentation.

Is this expected? Would it make sense to implement support for showing this type of information bellow the code cell in the documentation?

@akhmerov
Copy link
Member

This is a duplicate of #193, which is in turn an upstream issue jupyter/nbclient#196

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants