Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REVIEW] Remove unneeded backslash. Easier to copy and run. #289

Open
wants to merge 1 commit into
base: branch-0.14
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions utils/rapids-colab.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ if (( $RAPIDS_RESULT >= 11 )) ;then
echo "!wget -nc https://raw.githubusercontent.com/rapidsai/notebooks-contrib/master/utils/rapids-colab.sh"
echo "!bash rapids-colab.sh"
echo "import sys, os"
echo "dist_package_index = sys.path.index\('/usr/local/lib/python3.6/dist-packages'\)"
echo "dist_package_index = sys.path.index('/usr/local/lib/python3.6/dist-packages')"
echo "sys.path = sys.path[:dist_package_index] + ['/usr/local/lib/python3.6/site-packages'] + sys.path[dist_package_index:]"
echo "sys.path"
echo "if os.path.exists\('update_pyarrow.py'\): ## Only exists if RAPIDS version is 0.11 or higher"
echo " exec\(open\('update_pyarrow.py'\).read\(\), globals\(\)\)"
echo "if os.path.exists('update_pyarrow.py'): ## Only exists if RAPIDS version is 0.11 or higher"
echo " exec(open('update_pyarrow.py').read(), globals())"
echo "********************************************************************************************************"
echo "Do you have the above version of the script running in your cell? (Y/N)"
read response
Expand All @@ -56,11 +56,11 @@ if (( $RAPIDS_RESULT >= 11 )) ;then
echo "!wget -nc https://raw.githubusercontent.com/rapidsai/notebooks-contrib/master/utils/rapids-colab.sh"
echo "!bash rapids-colab.sh"
echo "import sys, os"
echo "dist_package_index = sys.path.index\('/usr/local/lib/python3.6/dist-packages'\)"
echo "dist_package_index = sys.path.index('/usr/local/lib/python3.6/dist-packages')"
echo "sys.path = sys.path[:dist_package_index] + ['/usr/local/lib/python3.6/site-packages'] + sys.path[dist_package_index:]"
echo "sys.path"
echo "if os.path.exists\('update_pyarrow.py'\): ## Only exists if RAPIDS version is 0.11 or higher"
echo " exec\(open\('update_pyarrow.py'\).read\(\), globals\(\)\)"
echo "if os.path.exists('update_pyarrow.py'): ## Only exists if RAPIDS version is 0.11 or higher"
echo " exec(open('update_pyarrow.py').read(), globals())"
echo "********************************************************************************************************"
rm rc2.sh
echo "Please COPY the above code and RERUN the cell"
Expand Down