@@ -14,26 +14,26 @@ Sample usage
1414
15153 . Use pip or pipenv to install the paperspace-python package:
1616
17- pip install paperspace
17+ ` pip install paperspace `
1818
19194 . Download your api key by executing the following:
2020
21- paperspace login
21+ ` paperspace login `
2222
2323 Follow the prompts to enter your Paperspace email and password.
2424
2525 You can also enter your credentials directly on the command line as follows:
2626
27- paperspace login <email > <password > [ <api_token_name>]
27+ ` paperspace login <email> <password> [<api_token_name>] `
2828
2929 Note: your api key is cached in ~ /.paperspace/config.json
3030 You can remove your cached api key by executing:
3131
32- paperspace logout
32+ ` paperspace logout `
3333
34345 . Execute the sample script hello.py:
3535
36- python hello.py
36+ ` python hello.py `
3737
3838 The script will be run on the remote job cluster node, and its output will be
3939 logged locally.
@@ -60,19 +60,19 @@ Other Authentication options
6060============================
61611 . Specify your apiKey explicitly on any of the paperspace.jobs methods, e.g.:
6262
63- paperspace.jobs.create({'apiKey': '1qks1hKsU7e1k...', 'project': 'myproject', 'machineType': 'GPU+', 'container': 'Test-Container'})
63+ ` paperspace.jobs.create({'apiKey': '1qks1hKsU7e1k...', 'project': 'myproject', 'machineType': 'GPU+', 'container': 'Test-Container'}) `
6464
65652 . Set the package paperspace.config option in your python code:
6666
67- paperspace.config.PAPERSPACE_API_KEY = '1qks1hKsU7e1k...'
67+ ` paperspace.config.PAPERSPACE_API_KEY = '1qks1hKsU7e1k...' `
6868
6969
70703 . Set the PAPERSPACE_API_KEY environment variable:
7171
7272 (on linux:) export PAPERSPACE_API_KEY=1qks1hKsU7e1k...
7373
7474 Note: the above methods take precedence over use of the cached api key in
75- ~ /.paperspace/config.json
75+ ` ~/.paperspace/config.json `
7676
7777
7878Contributing
0 commit comments