Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

INGInious/problems-custom

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

INGInious-problems-custom

Custom boxes INGInious problems.

Installing

pip3 install git+https://github.com/UCL-INGI/INGInious-problems-custom

Activating

In your configuration.yaml file, add the following plugin entry:

plugins:
  - plugin_module: "inginious-problems-custom"

Usage

The following example prints an exercise where the students must complete the foor loop fields. Boxes input are fetch using the following syntax : problemid/boxid

problems:
    problemid:
        type: custom
        header: Complete the for loop below.
        name: The for loop
        boxes:
            text1:
                type: text
                content: |-
                    .. raw:: html

                        <div class="row"><code>for(j=</code>
            for1:
                type: input-integer
                maxChars: 3
            text2:
                type: text
                content: |-
                    .. raw:: html

                        <code>; j <=</code>
            for2:
                type: input-decimal
                maxChars: 10
            text3:
                type: text
                content: |-
                    .. raw:: html

                        <code>;</code>
            for3:
                type: input-text
                maxChars: 10
            text4:
                type: text
                content: |-
                    .. raw:: html

                        <code>)</code></div>
            text5:
                type: text
                content: '``{``'
            for-content:
                type: multiline
                maxChars: 1000
                lines: 5
                language: python
            text6:
                type: text
                content: '``}``'

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.