summaryrefslogtreecommitdiffstats
path: root/cocalc/readme.md
blob: 040953393746e7c5a2c963a443e03b83f37dc90a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
### Example: `cocalc` <a name="example-cocalc"></a>


```python
# import library
import cocalc

cocalc.Completion.create(prompt="How are you!", cookieInput="cookieinput") ## Tutorial 
```

### How to grab cookie input
```js
// input this into ur developer tools console and the exact response u get from this u put into ur cookieInput!
var cookies = document.cookie.split("; ");
var cookieString = "";
for (var i = 0; i < cookies.length; i++) {
  cookieString += cookies[i] + "; ";
}
console.log(cookieString);
```