Junon
Overview
Junon is a Chatbot-like assistant on your jupyter notebook/lab.
Two types of assistants are built in.
- Data Analytics Assistant
- Writing Assistant
And, You can build your own assistant by using the junon.assistants module.
Getting Started
Installation
You can install this package from pypi.
pip install junon
Setup
Junon uses OpenAI API or Microsoft Azure OpenAI API to generate text.
Depending on which one you use, the required environment variables are different.
Please set the environment variables before the activation described below. (You need to set it before activation or importing junon package.)
OpenAI API
%env OPENAI_API_KEY XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Microsoft Azure OpenAI API
%env AZURE_OPENAI_API_KEY XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
%env AZURE_OPENAI_ENDPOINT https://xxxxxxxxxxxxxxxxxxxxxxx.openai.azure.com/
%env AZURE_OPENAI_DEFAULT_MODEL xxxxxx
note :
AZURE_OPENAI_DEFAULT_MODEL is not the model name, but the deployment name of the model deployed on Azure.
Activation
Run following magic command in your jupyter notebook/lab to activate the assistant you want to use.
Data Analytics Assistant :
%load_ext junon.assistants.data_analytics
Wrtiting Assistant :
%load_ext junon.assistants.writing_assistant
Usage
Junon is Chatbot-like assistant on your jupyter notebook/lab.
You can use it by sending a message to the assistant.
You can send a message to the assistant by executing the %%agent magic command in a code cell of Jupyter Notebook/Lab.
Example:
%%agent
Hello, My assistant!
I want to write a novel.
Can you help me?
The assistant will reply to your message.
Managment Conversation
You can manage the conversation with the assistant by using some magic commands.
To show the usage of the magic command, execute the following command in a code cell of Jupyter Notebook/Lab.
%usage
You have to activate the assistant before using the magic command.
upload to pypi
python setup.py sdist bdist_wheel
Metadata
Release files for junon 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| junon-0.1.1.tar.gz | 49.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| junon-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 78.7 kB
Release files / junon-0.1.1.tar.gz
| Download URL | junon-0.1.1.tar.gz |
|---|---|
| Size | 49.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1f13f1d055fc3748c73277ffe1254f8e1f0b4e45010cd053ee066386c66ae4d0
|
|
BLAKE2b-256 checksum How to use checksums |
d97d8d3d01452bf49a5c9400c4f8adc690eb2c83cc30a534e0fd4345dfd22355
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.2 CPython/3.11.1 Windows/10
|
Release files / junon-0.1.1-py3-none-any.whl
| Download URL | junon-0.1.1-py3-none-any.whl |
|---|---|
| Size | 29.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a3f0697133753565c6e1e04493dc06a32cbfda98ce9f3bbec12541288493a7aa
|
|
BLAKE2b-256 checksum How to use checksums |
d90c5408d8bf1c1cbd97872844dc52110d5a091e406b55a709bf43f1dc69ef3f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.2 CPython/3.11.1 Windows/10
|