Skip to main content

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 --quiet

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 --quiet

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mumuki_xce-0.2.tar.gz (14.8 kB view details)

Uploaded Source

Built Distribution

mumuki_xce-0.2-py2.py3-none-any.whl (5.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file mumuki_xce-0.2.tar.gz.

File metadata

  • Download URL: mumuki_xce-0.2.tar.gz
  • Upload date:
  • Size: 14.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for mumuki_xce-0.2.tar.gz
Algorithm Hash digest
SHA256 bc5d76a545adcf0c216b5e85ed782132ef4bcd1af79d836b3333f9c495e4bb4f
MD5 f45653d7d9ece8b667a489ae8e48e1f9
BLAKE2b-256 b26551aed7df729d20dafb8bb36718408c79234ca907207730fd016ac9c9cbcf

See more details on using hashes here.

File details

Details for the file mumuki_xce-0.2-py2.py3-none-any.whl.

File metadata

  • Download URL: mumuki_xce-0.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for mumuki_xce-0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5b5e2cb3071b4c35541c41f00885b794528ddd90ba698d2e7046e2cbe6ac2ab8
MD5 884cc0438912b5221166a84e2e42d1c0
BLAKE2b-256 824edcac7a9078d1e4d81884aa480da721a341fa1fce921757074527d3b3a949

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page