An open API service indexing awesome lists of open source software.

https://github.com/vladimirkucin634/perplexityipynb

Perplexity AI in iPython Notebooks
https://github.com/vladimirkucin634/perplexityipynb

ai ipynb perplexity

Last synced: 7 months ago
JSON representation

Perplexity AI in iPython Notebooks

Awesome Lists containing this project

README

          

# PerplexityIPYNB

PerplexityIPYNB is a Python module that allows you to interact with the Perplexity AI.\
*New in 1.1: magic commands support for cell and row*\
*New in 1.1.1: fixed websocket problem*
## Installation

You can install PerplexityIPYNB using pip. Run the following command in your terminal:

```bash
pip install PerplexityIPYNB
```

## Usage
### Functional
```python
from PerplexityIPYNB import Perplexity

ai = Perplexity()
prompt = input()

print(ai.RUN(prompt))
```
### Magic commands
```python
%%perplexity
prompt
```
or
```python
%perplexity prompt
```