Try   HackMD

[RACIMO-Móncora] Trabajo en Google Colab

Instrucciones para copiar el material del proyecto Móncora en Google Colab.

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →
Colab, también conocido como "Colaboratory", te permite programar y ejecutar Python en tu navegador con las siguientes ventajas:

  • No requiere configuración
  • Permite compartir contenido fácilmente

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →
Clonar repositorio en Google Colab

  1. Ir a https://colab.research.google.com
  2. Crear un nuevo Notebook desde Archivo / Nuevo notebook
  3. Usar el siguiente código para montar Google Drive en el espacio de trabajo.
from google.colab import drive
drive.mount('/gdrive')

Debes dar permiso para acceder a los archivos desde el mensaje desplegado.

  1. Crear la carpeta de trabajo en Google Drive usando
!mkdir /gdrive/MyDrive/carpetaTrabajo

Puedes reemplazar carpetaTrabajo a tu gusto. No uses espacios ni caracteres especiales.

  1. Ingresar a la carpeta de trabajo
%cd "/gdrive/MyDrive/carpetaTrabajo"

Reemplazar carpetaTrabajo por el nombre de la carpeta creada en el punto anterior.

  1. Clonar el repositorio e ingresar a la carpeta con
!git clone https://gitmilab.redclara.net/halleyUIS/moncora.git
%cd "moncora"

Si todo sale bien deberías ver el siguiente texto en la pantalla

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

Cloning into 'moncora'...
remote: Enumerating objects: 2167, done.
remote: Counting objects: 100% (2017/2017), done.
remote: Compressing objects: 100% (1064/1064), done.
remote: Total 2167 (delta 1275), reused 1381 (delta 845), pack-reused 150
Receiving objects: 100% (2167/2167), 56.83 MiB | 12.75 MiB/s, done.
Resolving deltas: 100% (1360/1360), done.
Updating files: 100% (179/179), done.
/gdrive/MyDrive/carpetaTrabajo/moncora

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →
Clonar repositorio en Google Colab [Versión rápida]

  1. Ir a https://colab.research.google.com
  2. Crear un nuevo Notebook desde Archivo / Nuevo notebook
  3. Usar el siguiente código para montar Google Drive en el espacio de trabajo.
from google.colab import drive
drive.mount('/gdrive')
  1. Clonar el repositorio ejecutando
!mkdir /gdrive/MyDrive/carpetaTrabajo
%cd "/gdrive/MyDrive/carpetaTrabajo"
!git clone https://gitmilab.redclara.net/halleyUIS/moncora.git
%cd "moncora"

Recuerda reemplazar carpetaTrabajo por un nombre a tu gusto

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →
Para abrir los notebooks

  1. Ir a https://drive.google.com
  2. Ubicar el notebook a trabajar en carpetaTrabajo/moncora
  3. Dar clic derecho y seleccionar: Abrir con
    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More →
    Google Colaboratory
    1. El notebook se mostrará en una nueva pestaña.

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →
Actualizar los archivos del repositorio

Para actualizar los archivos desde el repositorio original, desde el notebook inicial o desde algún notebook con los archivos de Google Drive cargados, ejecute el siguiente código:

from google.colab import drive
drive.mount('/gdrive')
%cd "/gdrive/MyDrive/carpetaTrabajo/moncora"
!git pull