-
-
Save ResidentMario/87c282ea4ebded91ee31 to your computer and use it in GitHub Desktop.
graphistry_networkx_mwe
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Traceback (most recent call last): | |
File "C:\Users\Alex\Anaconda3\envs\watson-graph\lib\site-packages\IPython\core\interactiveshell.py", line 3066, in run_code | |
exec(code_obj, self.user_global_ns, self.user_ns) | |
File "<ipython-input-6-5eadd70251a7>", line 1, in <module> | |
graphistry.bind(source='src', destination='dst', node='nodeid').plot(graph) | |
File "C:\Users\Alex\Anaconda3\envs\watson-graph\lib\site-packages\graphistry\plotter.py", line 311, in plot | |
info = PyG._etl1(dataset) | |
File "C:\Users\Alex\Anaconda3\envs\watson-graph\lib\site-packages\graphistry\pygraphistry.py", line 185, in _etl1 | |
headers=headers, params=params) | |
File "C:\Users\Alex\Anaconda3\envs\watson-graph\lib\site-packages\requests\api.py", line 107, in post | |
return request('post', url, data=data, json=json, **kwargs) | |
File "C:\Users\Alex\Anaconda3\envs\watson-graph\lib\site-packages\requests\api.py", line 53, in request | |
return session.request(method=method, url=url, **kwargs) | |
File "C:\Users\Alex\Anaconda3\envs\watson-graph\lib\site-packages\requests\sessions.py", line 454, in request | |
prep = self.prepare_request(req) | |
File "C:\Users\Alex\Anaconda3\envs\watson-graph\lib\site-packages\requests\sessions.py", line 388, in prepare_request | |
hooks=merge_hooks(request.hooks, self.hooks), | |
File "C:\Users\Alex\Anaconda3\envs\watson-graph\lib\site-packages\requests\models.py", line 296, in prepare | |
self.prepare_body(data, files, json) | |
File "C:\Users\Alex\Anaconda3\envs\watson-graph\lib\site-packages\requests\models.py", line 447, in prepare_body | |
body = self._encode_params(data) | |
File "C:\Users\Alex\Anaconda3\envs\watson-graph\lib\site-packages\requests\models.py", line 84, in _encode_params | |
return to_native_string(data) | |
File "C:\Users\Alex\Anaconda3\envs\watson-graph\lib\site-packages\requests\utils.py", line 700, in to_native_string | |
out = string.decode(encoding) | |
UnicodeDecodeError: 'ascii' codec can't decode byte 0x8b in position 1: ordinal not in range(128) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import networkx as nx | |
import graphistry | |
graphistry.register(key='...[key obfuscated]...') | |
graph = nx.path_graph(4) | |
graphistry.bind(source='src', destination='dst', node='nodeid').plot(graph) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment