mumuki-python-runner 1.10.0 → 1.10.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dbc061e567fe9908248e887785edd1eff8e58b4476d100f8038a92b8c8c5a67f
4
- data.tar.gz: 6e9cbf4ee3c0f325c3c069449749b22179f17186f66e2fee905db0cf2ce412e7
3
+ metadata.gz: cfe4c1b7c4a05396eff95054475016150f8625f9986a7470e7ae3616c2ac74ea
4
+ data.tar.gz: c2c69063f8ce3905dcca15c0b8c9bbcefcb6ebc28be1d92fb4780f29b97f3b25
5
5
  SHA512:
6
- metadata.gz: 3fb0ca410a3646ac41ceab49250378b89b705879102f26f02537e71b2c94d6cac2798cbf5d4ecec0a015f383ae30a916abfb48f12cb01430ba9b2b96b4a1f976
7
- data.tar.gz: 942566870256f6f55aeb68e74f135118a0be9de3b6adc39f088f60a6117a00e9cd8150ee514311b9b09d421a2d160934694f94fb6de02bb0daa87b17584a65f4
6
+ metadata.gz: 3661eefa8f35a6992f4632893ef87d04f888c0f56076b73a4a7793d329f37e4a5dda9e09526e14ae1f33e940d8b628966d0da5f2d840163bf9d84600e30a1e43
7
+ data.tar.gz: 0b248d700f5a711514f76a34310ef9b2598e6d04d68bffe7cb54d6f59a9404d93949785d3cf4826c0d44f1461b43bca4e9ab08271dd41cfc7642ef686890dc75
data/lib/base/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
 
2
2
  module BasePythonVersionHook
3
- VERSION = '1.10.0'
3
+ VERSION = '1.10.2'
4
4
  end
@@ -1,16 +1,20 @@
1
1
  class Python3MetadataHook < BasePythonMetadataHook
2
+ def self.read_xce_file(path)
3
+ File.read(File.expand_path "../../../xce/#{path}", __FILE__)
4
+ end
5
+
2
6
  XCE_INSTRUCTIONS = {
3
7
  'Colab': {
4
- 'en': File.read("xce/colab/en/README.md"),
5
- 'pt': File.read("xce/colab/pt/README.md"),
6
- 'es': File.read("xce/colab/es-ar/README.md"),
7
- 'es-ar': File.read("xce/colab/es-ar/README.md")
8
+ 'en': read_xce_file('colab/en/README.md'),
9
+ 'pt': read_xce_file('colab/pt/README.md'),
10
+ 'es': read_xce_file('colab/es-ar/README.md'),
11
+ 'es-ar': read_xce_file('colab/es-ar/README.md')
8
12
  },
9
13
  'Visual Studio Code': {
10
- 'en': File.read("xce/visual_studio/en/README.md"),
11
- 'pt': File.read("xce/visual_studio/pt/README.md"),
12
- 'es': File.read("xce/visual_studio/es-ar/README.md"),
13
- 'es-ar': File.read("xce/visual_studio/es-ar/README.md")
14
+ 'en': read_xce_file('visual_studio/en/README.md'),
15
+ 'pt': read_xce_file('visual_studio/pt/README.md'),
16
+ 'es': read_xce_file('visual_studio/es-ar/README.md'),
17
+ 'es-ar': read_xce_file('visual_studio/es-ar/README.md')
14
18
  }
15
19
  }
16
20
 
@@ -0,0 +1,31 @@
1
+ ### Login into Colab
2
+
3
+ In order to solve exercises like this, you will need to create an account and login into [`Colab`](https://colab.research.google.com/) first.
4
+
5
+ ### Solving an exercise
6
+
7
+ First, create a cell with the following code:
8
+
9
+ ```python
10
+ !pip install mumuki-xce
11
+
12
+ from mumuki import IMumuki
13
+ mumuki = IMumuki("#...token...#", "#...locale...#")
14
+ mumuki.visit("#...organization...#", "#...exercise_id...#")
15
+ ```
16
+
17
+ Then create another cell, whose first line must be `%%solution`. Right after it, write down your solution inside it:
18
+
19
+ ```python
20
+ %%solution
21
+
22
+ # your solution goes here
23
+ ```
24
+
25
+ Edit and execute that cell as many times as you need and feel free to do all the tests you need. When you are done, add a new cell after it and enter the following code:
26
+
27
+ ```python
28
+ mumuki.test()
29
+ ```
30
+
31
+ By executing that line you will submit your solution and will get feedback of it. If you make changes to your code, don't forget to re-execute the corresponding cells. Good luck!
@@ -0,0 +1,31 @@
1
+ ### Ingreso a Colab
2
+
3
+ Para poder resolver ejercicios como éste, necesitarás ingresar a [`Colab`](https://colab.research.google.com/). ¡Asegurate de haber iniciado sesión!
4
+
5
+ ### Resolución de un ejercicio
6
+
7
+ Primero, creá una celda con el siguiente código:
8
+
9
+ ```python
10
+ !pip install mumuki-xce
11
+
12
+ from mumuki import IMumuki
13
+ mumuki = IMumuki("#...token...#", "#...locale...#")
14
+ mumuki.visit("#...organization...#", "#...exercise_id...#")
15
+ ```
16
+
17
+ Luego creá otra celda, cuya primera línea debe ser `%%solution` y comenzá a escribir tu solución dentro de ella:
18
+
19
+ ```python
20
+ %%solution
21
+
22
+ # tu solución va acá
23
+ ```
24
+
25
+ Editá y ejecutá la celda cuantas veces necesites y no dudes en hacer todas las pruebas que hagan falta. Y finalmente, cuando quieras enviar tu solución, escribí en otra celda lo siguiente:
26
+
27
+ ```python
28
+ mumuki.test()
29
+ ```
30
+
31
+ Si hacés modificaciones a tu código, no olvides volver a ejecutar las celdas correspondientes. ¡Éxitos!
@@ -0,0 +1,31 @@
1
+ ### Login no Colab
2
+
3
+ Para resolver exercícios como este, você precisará fazer login no [`Colab`](https://colab.research.google.com/).
4
+
5
+ ### Resolvendo um exercício
6
+
7
+ Primeiro, crie uma célula com o seguinte código:
8
+
9
+ ```python
10
+ !pip install mumuki-xce
11
+
12
+ from mumuki import IMumuki
13
+ mumuki = IMumuki("#...token...#", "#. . .locale...#")
14
+ mumuki.visit("#...organization...#", "#...exercise_id...#")
15
+ ```
16
+
17
+ Em seguida, crie outra célula, cuja primeira linha deve ser ` %%solution` e comece a escrever sua solução dentro dela:
18
+
19
+ ```python
20
+ %%solution
21
+
22
+ # sua solução vai aqui
23
+ ```
24
+
25
+ Edite e execute a célula quantas vezes precisar e fique à vontade para fazer todos os testes que precisar. E finalmente, quando você quiser enviar sua solução, escreva em outra célula o seguinte:
26
+
27
+ ```python
28
+ mumuki.test()
29
+ ```
30
+
31
+ Se você fizer alterações em seu código, não se esqueça de executar novamente as células correspondentes. Boa sorte!
@@ -0,0 +1,35 @@
1
+ ### Environment setup
2
+
3
+ You will need to use `python` and `pip` in order to solve exercises like this. Please ensure you have those commands locally installed in your computer. Then install `mumuki-xce`:
4
+
5
+ ```shell
6
+ pip install mumuki-xce
7
+ ```
8
+
9
+ Now you are ready to solve exercises!
10
+
11
+ ### Solving an exercise
12
+
13
+ Just create a new python file with `py` extension, and paste the following code in it:
14
+
15
+ ```python
16
+ from mumuki import Mumuki
17
+ mumuki = Mumuki("#...token...#", "#...locale...#")
18
+ mumuki.visit("#...organization...#", "#...exercise_id...#")
19
+
20
+ # ...place your solution here...
21
+
22
+ mumuki.test()
23
+ ```
24
+
25
+ If you want to submit your solution, just run on your terminal
26
+
27
+ ```bash
28
+ python your_file.py
29
+ ```
30
+
31
+ If you just want to load it into a node interpreter and test and play with your code, run:
32
+
33
+ ```bash
34
+ python -i your_file.py
35
+ ```
@@ -0,0 +1,37 @@
1
+ ### Preparación del entorno
2
+
3
+ Para poder resolver ejercicios como éste, necesitarás utilizar los comandos `python` y `pip`. Antes de comenzar, asegurate de tenerlos instalados. Después, ejecutá el siguiente comando, por única vez (si ya lo hiciste anteriormente, podés saltar al siguente paso):
4
+
5
+ ```shell
6
+ pip install mumuki-xce
7
+ ```
8
+
9
+ ¡Ya podés empezar a resolver ejercicios!
10
+
11
+ ### Resolución de un ejercicio
12
+
13
+ Creá un archivo con extensión `.py` en tu computadora y adentro copiá el siguiente código:
14
+
15
+ ```python
16
+ from mumuki import Mumuki
17
+ mumuki = Mumuki("#...token...#", "#...locale...#")
18
+ mumuki.visit("#...organization...#", "#...exercise_id...#")
19
+
20
+ # Escribí tu solución acá
21
+
22
+ mumuki.test()
23
+ ```
24
+
25
+ Si querés enviar tu solución, simplemente ejecutá en tu terminal lo siguiente:
26
+
27
+ ```bash
28
+ python tu_archivo.py
29
+ ```
30
+
31
+ Si en cambio querés cargar tu archivo en el intérprete de `python` para probarlo y jugar con sus funciones antes de enviarlas, ejecutá lo siguiente:
32
+
33
+ ```bash
34
+ python -i tu_archivo.py
35
+ ```
36
+
37
+ ¡Éxitos!
@@ -0,0 +1,37 @@
1
+ ### Preparação do ambiente
2
+
3
+ Para resolver exercícios como este, você precisará usar os comandos `python` e `pip`. Antes de começar, certifique-se de tê-los instalados. Então, execute o seguinte comando, apenas uma vez (se você já fez isso antes, você pode pular para o próximo passo):
4
+
5
+ ```shell
6
+ pip install mumuki-xce
7
+ ```
8
+
9
+ Agora você pode começar a resolver os exercícios!
10
+
11
+ ### Resolvendo um exercício
12
+
13
+ Crie um arquivo com extensão `.py` em seu computador e copie o seguinte código dentro dele:
14
+
15
+ ```python
16
+ from mumuki import Mumuki
17
+ mumuki = Mumuki("#...token...#", " #...locale...#")
18
+ mumuki.visit("#...organization...#", "#...exercise_id...#")
19
+
20
+ # Escreva sua solução aqui
21
+
22
+ mumuki.test()
23
+ ```
24
+
25
+ Se você deseja enviar sua solução, basta executar o seguinte em seu terminal:
26
+
27
+ ```bash
28
+ python your_file.py
29
+ ```
30
+
31
+ Se, em vez disso, você deseja carregar seu arquivo no interpretador `python` para testá-lo e brincar com seu funções primeiro Depois de enviá-los, execute o seguinte:
32
+
33
+ ```bash
34
+ python -i seu_arquivo.py
35
+ ```
36
+
37
+ Boa sorte!
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mumuki-python-runner
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.0
4
+ version: 1.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Franco Leonardo Bulgarelli
@@ -157,6 +157,12 @@ files:
157
157
  - lib/python3/version.rb
158
158
  - lib/python3_runner.rb
159
159
  - lib/python_runner.rb
160
+ - xce/colab/en/README.md
161
+ - xce/colab/es-ar/README.md
162
+ - xce/colab/pt/README.md
163
+ - xce/visual_studio/en/README.md
164
+ - xce/visual_studio/es-ar/README.md
165
+ - xce/visual_studio/pt/README.md
160
166
  homepage: http://github.com/mumuki/mumuki-python-runner
161
167
  licenses:
162
168
  - MIT