Skip to content

Commit 60f2ea2

Browse files
committed
code formatting in sphinx
1 parent 2ee8f37 commit 60f2ea2

File tree

1 file changed

+18
-17
lines changed

1 file changed

+18
-17
lines changed

graphistry/pygraphistry.py

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,17 @@
4242
class GraphistryClient(AuthManagerProtocol):
4343
"""
4444
Main Graphistry client class for API interactions.
45+
::
4546
46-
::
47-
# Import the GraphistryClient singleton
48-
import graphistry
47+
# Import the GraphistryClient singleton
48+
import graphistry
4949
50-
graphistry.register(...)
50+
graphistry.register(...)
5151
52-
# Create a :py:class:`graphistry.plotter.Plotter`
53-
g = graphistry.bind(nodes=df_nodes, edges=df_edges)
54-
# Plot the graph
55-
g.plot()
52+
# Create a :py:class:`graphistry.plotter.Plotter`
53+
g = graphistry.bind(nodes=df_nodes, edges=df_edges)
54+
55+
g.plot()
5656
5757
5858
Session Management:
@@ -64,15 +64,16 @@ class GraphistryClient(AuthManagerProtocol):
6464
session state, so it's not safe for concurrent use across threads. For concurrent
6565
or multi-tenant scenarios, create separate client instances using graphistry.client().
6666
67-
::
68-
import graphistry
69-
70-
# Create independent client instances
71-
alice_g = graphistry.client()
72-
alice_g.register(api=3, username='alice', password='pw')
73-
74-
bob_g = graphistry.client()
75-
bob_g.register(api=3, username='bob', password='pw')
67+
Multiple clients:
68+
::
69+
70+
import graphistry
71+
# Create independent client instances
72+
alice_g = graphistry.client()
73+
alice_g.register(api=3, username='alice', password='pw')
74+
75+
bob_g = graphistry.client()
76+
bob_g.register(api=3, username='bob', password='pw')
7677
7778
7879
Each client has its own isolated session (self.session) that tracks:

0 commit comments

Comments
 (0)