Add a short description here!
Project description
Solve Mumuki exercises using your favorite code editor
Description
This package allows you to load, solve and submit assignments in two different ways:
Using an standard editor - like vim or Visual Studio Code - and the standard Python interpreter
Using Colab
Standard Editor Usage
Environment setup
You will need to use python and pip in order to solve exercises. Please ensure you have those commands locally installed in your computer. Then install mumuki-xce:
pip install mumuki-xce
Now you are ready to solve exercises!
Solving an exercise
Just create a new python file with py extension, and paste the following code in it:
from mumuki import Mumuki
mumuki = Mumuki("#...token...#", "#...locale...#")
mumuki.visit("#...organization...#", "#...exercise_id...#")
# ...place your solution here...
mumuki.test()
If you want to submit your solution, just run on your terminal
python your_file.py
If you just want to load it into a node interpreter and test and play with your code, run:
python -i your_file.py
Colab Usage
Environment setup
In order to solve exercises you will need to visit and log in to [Colab](https://colab.research.google.com/).
Solving an exercise
First create a cell with the following code:
!pip install mumuki-xce
from mumuki import IMumuki
mumuki = IMumuki("#...token...#", "#...locale...#")
mumuki.visit("#...organization...#", "#...exercise_id...#")
Then create another cell, whose first line must be %%solution. Then write your solution above it:
%%solution
# ...your solution goes here
Now please edit and run your cells as needed. Feel free also to create aditional cells. When you are ready, add another cell will the following code:
mumuki.test()
If you modify your code, don’t forget to run your cells again.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file mumuki_xce-0.1.tar.gz
.
File metadata
- Download URL: mumuki_xce-0.1.tar.gz
- Upload date:
- Size: 13.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad376eeced88915d80a59d568a65f828468de17d21edb18094033399fedf1493 |
|
MD5 | 297ad435119350181d28aab576fc6625 |
|
BLAKE2b-256 | cac523b8059335a780e812e86f13f4b9187ccb5e5c8438b0f8164e0bd9c4e28e |
File details
Details for the file mumuki_xce-0.1-py2.py3-none-any.whl
.
File metadata
- Download URL: mumuki_xce-0.1-py2.py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f957d7f458e2cb6102b952fbec0a92af93b0bb59abeb629b6b2c867a069dc75a |
|
MD5 | 0e095a010e01004a6c878d651471b9de |
|
BLAKE2b-256 | d199e81b861ff43b36a121b9a18d7f36b1070cc76d07b7b57e3e28a64ca39480 |