You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extension version (available under the Extensions sidebar): 2018.12.1
OS and version: MacOS Sierra
Python version (& distribution if applicable, e.g. Anaconda): Anaconda 3.6.7
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): XXX
Relevant/affected Python packages and their versions: requests=2.21, IPython 7.2.0, ipykernel=5.1.0, jupyter
Expected behaviour
I should be able to print a requests object.
Actual behaviour
Nothing shows up!
I attached a screenshot. My terminal at the bottom printed correctly, as a result of clicking to run the selection in Python Terminal.
Steps to reproduce:
make a request
Print it
Logs
none
Output from Console under the Developer Tools panel (toggle Developer Tools on under Help; turn on source maps to make any tracebacks be useful by running Enable source map support for extension debugging)
none
The text was updated successfully, but these errors were encountered:
I believe the problem is we're treating the returned data as html directly instead of wrapping it in a span. So the <Response [200]> is treated like an html tag.
@rchiodo that makes sense to me. are you able to change the behavior to wrap output in span, and see if that resolves the issue?
Seems relevant to printing objects generally, not just requests objects. E.g. printing a package is wrapped in tags... <module 'package' from 'path/here.py'>
Seems like a straightforwards fix to make for the next release?
Unfortunately it's not as simple as just sticking a span around everything. It all depends upon the type of stream data. We have to put spans just around text data. It should be fixed soon though.
Environment data
Expected behaviour
I should be able to print a requests object.
Actual behaviour
Nothing shows up!
I attached a screenshot. My terminal at the bottom printed correctly, as a result of clicking to run the selection in Python Terminal.
Steps to reproduce:
Logs
Output from
Console
under theDeveloper Tools
panel (toggle Developer Tools on underHelp
; turn on source maps to make any tracebacks be useful by runningEnable source map support for extension debugging
)The text was updated successfully, but these errors were encountered: