Relative Content

Tag Archive for pythongoogle-colaboratory

Running a Jupyter notebook from a folder in Colab

I was trying to run a notebook from a folder in Colab. It imports other python files, so I used sys.path.append('/content/drive/MyDrive/[my folder]'). It successfully imports some files. However, one of the files in this folder failed to access other files (the csv file in the screenshot). How to resolve this issue?

Can Google Colab run a Python zipped executable?

I have created a python zipped executable using behavior similar to https://docs.python.org/3/library/zipapp.html. (More precisely, I created the executable in bazel using the --build_python_zip command line flag).