Page tree

Tartu Ülikooli IT viki

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Siit juhendist leiad juhised Google Colab teenuse kohta.

HTML Wrap
classbutton button1

(info) In English



Warning

Google Workspace for Education on Tartu Ülikoolis juurutamises. See tähendab, et need teenused on kasutatavad ainult osaliselt ja ligipääs on piiratud. Samuti on käesolevad juhendid pidevalt täienemas ning muutumas.


Note

Google Colab ei kuulu Workspace teenuste hulka, vaid on

üldinge

üldine 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
      Image Modified
  • 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
  • Vaikimisi 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
    • Paremalt ülevalt nurgast: "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

Image RemovedImage Removed
Note

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
      Image Removed
  • 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
  • From the upper right corner: 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

      • Image ModifiedImage Modified