@@ -20,8 +20,8 @@ Commands are provided by the *pythonhere* extension
2020% load_ext pythonhere
2121```
2222
23- ## connect-there
24- ** Connect to remote interpreter via SSH. **
23+ ## % connect-there
24+ ** Connect to remote interpreter via SSH**
2525
2626Command takes single optional argument: location of connection config.<br >
2727If argument is not provided, values are loaded from the ** there.env** file.
@@ -62,15 +62,15 @@ THERE_PASSWORD=xxx
6262Default action for * %there* , if command is not specified - execute python code.
6363
6464
65- ## there
65+ ### there
6666** Execute python code on the remote side.** <br >
6767
6868``` python
6969%% there
7070import this
7171```
7272
73- ## kv
73+ ### kv
7474
7575``` python
7676% there kv -- help
9696 PopMatrix
9797```
9898
99- ## shell
99+ ### shell
100100
101101``` python
102102% there shell -- help
@@ -124,7 +124,7 @@ Listen to Android system logs in the background and show last two lines of outpu
124124logcat
125125```
126126
127- ## upload
127+ ### upload
128128
129129``` python
130130% there upload -- help
@@ -146,7 +146,18 @@ logcat
146146find
147147```
148148
149- ## log
149+
150+ ### pin
151+
152+ ``` python
153+ % there pin -- help
154+ ```
155+
156+ ``` python
157+ % there pin script.py -- label " My script"
158+ ```
159+
160+ ### log
150161
151162``` python
152163% there log -- help
@@ -157,16 +168,21 @@ Since the command blocks and never ends, it is useful to run with --backgroud (-
157168```
158169
159170``` python
160- % there - bl 1 log
171+ % there - b - l 1 log
172+ ```
173+
174+ ``` python
175+ # wait, to make sure *log* cell connection is established before next cell is executed
176+ import asyncio ; await asyncio.sleep(3 )
161177```
162178
163179``` python
164180%% there
165181from kivy.logger import Logger
166- Logger.info(" Hello from the future cell" )
182+ Logger.info(f " Hello from the main cell " )
167183```
168184
169- ## screeenshot
185+ ### screeenshot
170186
171187``` python
172188% there screenshot -- help
@@ -178,5 +194,5 @@ Logger.info("Hello from the future cell")
178194* and save image to a local file:
179195
180196``` python
181- % there - d .5 screenshot - w 200 - o / tmp/ screenshot_test.png
197+ % there - d 0 .5 screenshot - w 200 - o / tmp/ screenshot_test.png
182198```
0 commit comments