Page tree

Tartu Ülikooli IT viki

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »

Google Colab ei kuulu Workspace teenuste hulka, vaid on üldinge Google teenus, mida on võimalik kasutada ka Workspace keskkonnas. Selle kasutamisel rakenduvad Google üldtingimused. Seetõttu on vajalik kinni pidada mõningatest reeglitest, mis on kirjeldatud siin lehel.

Notebook'ide salvestamine

  • Notebook'id tuleb salvestada Google drive'i
    • Vaikimisi salvestatakse My drive'i Colab Notebooks kausta: "File → Save (Ctrl+S)"
    • Valides "File → Save a copy in Drive" luuakse My drive'i Notebook'i koopia
  • Kui on soov Notebook'e teistele jagada, tuleb need liigutada mõnda Shared drive'i
    • https://drive.google.com lehel liigutades faili(d) isiklikult kettalt jagatud kettale
    • "File → Move → navigeeri sobiva asukohani jagatud kettal → Select"

Koodi käivitamine

  • Vaikimis käivitatakse kood Google poolt automaatselt genereeritavas VM keskkonnas
    • Sellisel juhul ei tohi kasutada reaalseid isikuandmeid
  • Kui on soov siiski töötada isikuandmetega, siis tuleb isiklikus arvutis seadistada VM keskkond ning kood käivitada seal
    • "Connect → Connect to a local runtime"
    • Vajutades lingil these instructions avaneb juhend keskkonna seadistamiseks
    • Notebook'i jagades ei jagata teistele kohalikku keskkonda - selle peab igaüks ise seadistama

Google Colab is not part of Workspace services but is an additional Google service usable within Workspace. General Google Terms of Service are applied. Therefore it is necessary to make an agreement to some rules described in this page.

Saving Notebooks

  • Notebooks must be saved in Google Drive
    • By default they are saved in My Drive in the Colab Notebooks folder: "File → Save (Ctrl+S)"
    • By selecting "File → Save a copy in Drive", a copy of the current Notebook is created in My Drive
  • If you wish to share the Notebook with others, it must be moved to a Shared drive
    • On https://drive.google.com page move the file(s) from the personal drive to a shared drive
    • "File → Move → navigate to a desired location on a shared drive → Select"

Executing code cells

  • By default the code is run in a VM environment created automatically by Google
    • In that case you are not allowed to use actual personal information in the code
  • If there is a need to work with personal data, you must set up a VM environment on your local computer
    • Connect → Connect to a local runtime
    • Clicking these instructions link opens instructions on how to set up the environment
    • When sharing a Notebook with others, local runtime is not shared - everyone must set up their own
  • No labels

This page has no comments.