Comments (8)
I confirm this bug on Python 3.4.
Thanks for reaching out to us.
from plotly.py.
Fix #79 doesn't solve that for me. Here is traceback:
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-9-4f183c164120> in <module>()
4
5 s.write(dict(x=[1,2,3], y=[3,5,4]))
----> 6 s.close()
/home/dan/prac/.virtualenvs/work/lib/python3.4/site-packages/plotly/plotly/plotly.py in close(self)
509 """
510 try:
--> 511 self._stream.close()
512 except AttributeError:
513 raise exceptions.PlotlyError("Stream has not been opened yet.")
/home/dan/prac/.virtualenvs/work/lib/python3.4/site-packages/plotly/plotly/chunked_requests/chunked_request.py in close(self)
109 return ''
110
--> 111 return self._getresponse()
112
113 def _getresponse(self):
/home/dan/prac/.virtualenvs/work/lib/python3.4/site-packages/plotly/plotly/chunked_requests/chunked_request.py in _getresponse(self)
132 break
133 else:
--> 134 response += bytes
135 # Set recv to be non-blocking again
136 self._conn.sock.setblocking(False)
TypeError: Can't convert 'bytes' object to str implicitly
(I've just change the loop to something easy, to make minimal example. Output is same with original step)
from plotly.py.
Try pulling in the latest commit
$ git checkout iss79
$ git pull origin iss79
from plotly.py.
@kotrfa, try either cloning master, or pip install --upgrade plotly
and running your code again?
The most recent updates were target towards Python 3 use and should help you out.
Thanks again for the feedback!
from plotly.py.
Yeah, that worked! Solved. Thank you for your gret work
from plotly.py.
Awesome! Thanks for keeping us updated on your end! We're trying to ramp up Python 3 integration, so do let us know if anything else comes up.
from plotly.py.
Sure I will.
By the way, I've noticed that if I create stream:
s = py.Stream(my_stream_id)
# Open the stream
s.open()
then s.connected
always returns False
for me. I'm not sure how exactly it should work, so I'm not signing it as a bug. Help for this thing is not documented a lot and plotly.plotly.Stream.connected
doesn't exists (but again, not understand why so maybe it's my fault).
from plotly.py.
Ah, yeah. We should take care of that attribute. I'm not sure that it's being used currently, so that False
is just a default set on instantiation: https://github.com/plotly/python-api/blob/master/plotly/plotly/plotly.py#L400
If you've opened the connection, you should be good to go.
from plotly.py.
Related Issues (20)
- Parallel coordinates mixed categrical and numerical values HOT 1
- Docs: "Download as HTML" recommends using a `data:` URL, which is restricted in Dash>=2.15.0 HOT 1
- multiple Legends not working in VS code HOT 2
- px.strip jitter doesn't work as expected due to underlying go.Box config HOT 1
- The color of Scattergl points are missing when using animation HOT 1
- tickmode='sync' option is not working as intended
- Cannot provide custom HTTP headers (e.g. bearer token) to Mapbox layer source HOT 2
- `Legendrank` does not work in plotly (pyscript) when `fill` argument is used HOT 2
- Test dependency versions are out of date
- why isn't fig.update_zaxes implimented
- Hover data not displaying on plotly map HOT 1
- plotly.express.scatter_geo() function cannot generate world map HOT 1
- Plotly legends cutoff in Quarto Dashboards
- Opacity and color not working together in px.scatter HOT 1
- Clarify installation of jupyterlab-plotly extension in documentation for JupyterLab 3.x HOT 2
- Making Radar Charts: make_trace_kwargs uses df.append which has been deprecated in pandas 2.0 HOT 1
- zorder doesn't work on version 5.21.0 HOT 5
- Shared X-axis spike remove tick marks from other subplots in Plotly?
- Update docs for using Jupyter HOT 1
- [Plotly Surface] Weird behavior of hover text for surfacecolor HOT 1
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 plotly.py.