Skip to content

Commit

Permalink
remove colab_ prefixed notebooks from combine_nb script (#559)
Browse files Browse the repository at this point in the history
* remove colab_ prefixed notebooks from combine_nb script

* Delete trulens_eval/examples/quickstart/colab directory

* remove colab_dependencies.ipynb
  • Loading branch information
joshreini1 authored Nov 15, 2023
1 parent 2508cea commit ff40d5a
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 1,037 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/combine_nb_to_docs_testing.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@ rm -rf alltools.ipynb
# IF MOVING ANY IPYNB, MAKE SURE TO RE-SYMLINK. MANY IPYNB REFERENCED HERE LIVE IN OTHER PATHS
nbmerge langchain_quickstart.ipynb logging.ipynb custom_feedback_functions.ipynb >> all_tools.ipynb

# Colab quickstarts
# IF MOVING ANY IPYNB, MAKE SURE TO RE-SYMLINK. MANY IPYNB REFERENCED HERE LIVE IN OTHER PATHS
nbmerge colab_dependencies.ipynb langchain_quickstart.ipynb >> langchain_quickstart_colab.ipynb
nbmerge colab_dependencies.ipynb llama_index_quickstart.ipynb >> llama_index_quickstart_colab.ipynb
nbmerge colab_dependencies.ipynb text2text_quickstart.ipynb >> text2text_quickstart_colab.ipynb

# Create pypi page documentation

cat intro.md > README.md
Expand All @@ -32,7 +26,7 @@ jupyter nbconvert --to script --output-dir=./py_script_quickstarts/ all_tools.ip
SED=`which -a gsed sed | head -n1`

# Fix nbmerge ids field invalid for ipynb
$SED'' -e "/id\"\:/d" all_tools.ipynb langchain_quickstart_colab.ipynb llama_index_quickstart_colab.ipynb text2text_quickstart_colab.ipynb
$SED'' -e "/id\"\:/d" all_tools.ipynb

## Remove ipynb JSON calls
$SED'' -e "/JSON/d" ./py_script_quickstarts/langchain_quickstart.py ./py_script_quickstarts/llama_index_quickstart.py ./py_script_quickstarts/text2text_quickstart.py ./py_script_quickstarts/all_tools.py
Expand All @@ -54,8 +48,6 @@ mv TOP_README.md ../../README.md

# Links are referenced in intro.md and gh_intro.md
# There are symlinks from ../../trulens_eval/generated_files/ to these scripts for testing
mkdir -p ../../trulens_eval/examples/quickstart/colab/
mv *quickstart_colab.ipynb ../../trulens_eval/examples/quickstart/colab/
mkdir -p ../../trulens_eval/examples/quickstart/py_script_quickstarts/
mv ./py_script_quickstarts/*.py ../../trulens_eval/examples/quickstart/py_script_quickstarts/

Expand Down
39 changes: 0 additions & 39 deletions docs/trulens_eval/colab_dependencies.ipynb

This file was deleted.

Loading

0 comments on commit ff40d5a

Please sign in to comment.