Skip to content

IllumiDesk/notebook-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IllumiDesk's Jupyter Notebook Playground

Open in GitHub Codespaces

Various Jupyter Notebooks used for experimentation.

Running the Examples

Using IllumiDesk

  1. Click on any *.ipynb file.
  2. Click ing on the Raw button and then Ctrl+S to save the file.
  3. Import the notebooks into the IllumiDesk course as a new Activity.
  4. Run the cells in the notebook to see the results.

NOTE: When using the IllumiDesk Activity, you need to set the openai_api_key variable in the first cell of the notebook as a named parameter to the OpenAI class. For example:

openai_api_key = "sk-..."
chatgpt_chain = LLMChain(
    llm=OpenAI(temperature=0, openai_api_key=openai_api_key),
    prompt=prompt,
    verbose=True,
    memory=ConversationBufferWindowMemory(k=2),
)

Using Codespaces

The OPENAI_API_KEY is already set in the Codespaces environment variables.

  1. Click on the Code button and then Open with Codespaces.

    Python 3.10 and JupyterLab are enabled by default

  2. Click on the Run button to start the JupyterLab server.

Using Local Jupyter Notebooks

  1. Clone this repository.
  2. Create a virtuale environment and install the requirements.
virtualenv -p python3 venv/
source venv/bin/activate
pip install -r requirements.txt
  1. Export the OPENAI_API_KEY environment variable.
export OPENAI_API_KEY=sk-...
  1. Start the Jupyter Notebook server.
jupyter lab

About

Various Jupyter Notebooks used for experimentation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published