Comments (11)
I think it is an issue with your installation. Trying out your unicode string with this notebook gives me unicode in the output.
from gnuplot_kernel.
from gnuplot_kernel.
I don't see anything attached!
What version of python is it?
from gnuplot_kernel.
from gnuplot_kernel.
from gnuplot_kernel.
Okay, I have seen the same issue at binder.
from gnuplot_kernel.
from gnuplot_kernel.
That link did work, but I tried it https://mybinder.org/v2/gh/has2k1/gnuplot_kernel/master?filepath=examples and I got the exact garbled output as in https://www.adrive.com/public/yFJpnM/Screenshot_20200510_162329.png.
After some debugging on the containers at binder , I have tracked the failure to pass on unicode to somewhere between the pexpect
library (that is part of the requirements) and the gnuplot installation. For my system with the same versions of pexpect
and gnuplot
, unicode works well. For the binder system, pexpect
with sh
can pass between themselves unicode strings, while pexpect
with gnuplot
mess up the unicode handling
A snapshot of the debugging
Code
# Send some unicode string to the shell and see what it prints
import pexpect
spawn_cmd = '/bin/sh'
child = pexpect.spawnu(spawn_cmd, echo=False)
cmd = 'echo "β(°)"'
child.sendline(cmd)
child.readline()
res = child.before
res
# Send some unicode string to gnuplot and see what it prints
import pexpect
spawn_cmd = '/usr/bin/gnuplot'
#child = pexpect.spawn(spawn_cmd, encoding='utf-8')
child = pexpect.spawnu(spawn_cmd, encoding='utf-8')
cmd = 'print "β(°)"'
child.sendline(cmd)
child.readline()
res = child.buffer.split()[-2]
res
from gnuplot_kernel.
from gnuplot_kernel.
python3-pexpect is version 4.6.0-1
I have ruled out pexpect and its only dependency ptyprocess by testing the minimum required versions pexpect-4.2.0 and ptyprocess-0.5.0 and my system. With those versions unicode strings are handled correctly.
That effectively rules out the python packages, but not the installed CPython (esp. it's compilation environment) and the general OS environment. With that I am out of moves.
from gnuplot_kernel.
from gnuplot_kernel.
Related Issues (20)
- Fix kernel installation issue HOT 1
- Configure the repo to support running in MyBinder HOT 2
- Diverting output to file does not work HOT 6
- Install on Python 2 fails HOT 1
- Suppress gnuplot kernel outputs after each cell HOT 2
- Windows path 7 Error: End Of File HOT 6
- SVG support? HOT 5
- Retrieve CSV from URL HOT 4
- State of the cell is unclear HOT 6
- Any tips for added interactivity? HOT 6
- May be you have plotted to a non interactive termial HOT 1
- not well-formed errors HOT 1
- Fails to be recognized as kernel, on Ubuntu 20.04 HOT 3
- Unable to run the sample document and the kernel fails to show on Jupyter lab or VS Code. HOT 2
- Warning about prompt at each cell HOT 9
- Failed to read and display image file from gnuplot HOT 1
- Several TypeError when running the tests HOT 2
- Multiple plots in for loop not working HOT 2
- Gnuplot kernel is stuck in 'busy' state
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 gnuplot_kernel.