Comments (7)
This also looks wrong:
[ZMQTerminalIPythonApp] Loading IPython extension: storemagic
from jupyter_console.
It looks like it works with the execute_result message (that generates an Out
prompt), but not with display_data:
In [1]: class A():
: def _repr_png_(self):
: return b'oijoij'
:
In [2]: a= A()
In [3]: a
Out[3]: <__main__.A at 0x7f052871f1d0>
In [4]: from IPython.display import display
In [5]: display(a)
from jupyter_console.
well I was against changing it π
from jupyter_console.
well, the cause is easy to identify:
handle_rich_data
is called, which in turn callshandle_image
and then returnsTrue
. when returning True,text/plain
isnβt used.handle_image_PIL
checks if the mimetype is PNG or SVG and returns if not, without doing anything.
we should make handle_image
return True/False depending on if its delegated function can handle it the format.
AGAIN a bug exposed by having SVG! this is so useful!
from jupyter_console.
Thanks, well worked out. I've just opened #77 for it, and then noticed that you've done a fix as well. You've opened a PR against your own fork of the repo, though ;-)
from jupyter_console.
whoops
from jupyter_console.
AGAIN a bug exposed by having SVG! this is so useful!
More "(ab)using users as guinea pigs"... :-)
from jupyter_console.
Related Issues (20)
- jupyter console --simple-prompt crashes after update to Python 3.9.8 HOT 1
- Jupiter console crashes on Python 3.10 HOT 2
- Any chance we could get a release for this soon? HOT 5
- Jupyter console invalid syntax with Python 3.10 HOT 2
- Renamed default branch to main
- Not compatible with Python 3.10
- Cannot run jupyter-console HOT 3
- Add keyboard shortcut to show help tooltips like in Jupyter Notebook/Lab
- Take input from remote
- TypeError: object int can't be used in 'await' expression when ZMQTerminalInteractiveShell.include_other_output = True HOT 8
- Jupyter console is broken (run_sync expects coroutines) HOT 3
- Configuration InteractiveShell.separate_in not supported? HOT 2
- Display ExceptionGroup full message
- Display Exception notes
- level of brightness of the number present in the prompt.
- How to set terminal title as in IPython HOT 1
- Jupyter console won't work with %matplotlib osx. HOT 5
- KeyboardInterrupt not handled correctly
- System imports can be overriden by user-space files such as `queue.py`
- Unable to start jupyter console: "RuntimeError: asyncio.run() cannot be called from a running event loop" HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jupyter_console.