Virtual Programming Lab

Activities ::: mod_vpl
Maintained by Juan Carlos Rodríguez-del-Pino
VPL is an activity module to manage programming assignments
Latest release:
2349 sites
1k downloads
163 fans
Current versions available: 5
VPL Logo

Virtual Programming Lab for Moodle

VPL- Virtual Programming Lab is a activity module that manage programming assignments and whose salient features are:

  • Enable to edit the programs source code in the browser
  • Students can run interactively programs in the browser
  • You can run tests to review the programs.
  • Allows searching for similarity between files.
  • Allows setting editing restrictions and avoiding external text pasting.

Screenshots

Screenshot #0
Screenshot #1
Screenshot #2
Screenshot #3
Screenshot #4

Contributors

Juan Carlos Rodríguez-del-Pino (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

顯示評論
  • Juan Carlos Rodríguez-del-Pino
    2021年04月23日(週五) 23:02
    Dear Duy Phuong Pham (and all other VPL users)
    Please, use the forum
    https://moodle.org/mod/forum/view.php?id=8672
    to do any questions.
    Please, be verbose, if you give not enough details of your environment, we will not be able to replay the case and try to spot the problem. It will help if you can reproduce your problem on the vpl demo server.

    Best regards,
    Juan Carlos.
    https://moodle.org/mod/forum/view.php?id=8672
    to do any question.
  • Steve Wentworth
    2022年10月12日(週三) 03:41
    I have recently updated the plugin using moodle 3.9. We now receive the following when clicking the run or check icons.
    Call to undefined function hrtime
    On research the hrtime function is new tp php 7.3. moodle 3.9 is surpposed to support php 7.2. Does this now mean I need to upgrade all my php libraries. Help this was working fine before, I fear php upgrade may knock a lot more out.
  • HyunSuk Jeong
    2023年01月18日(週三) 13:37
    Hello Juan.
    Happy new year.

    I actually have a problem with UI in VPL.
    When I make an activity, my "Jump to" section is disappear.
    (float-left, jump to activity, flot-right all gone)
    This happens only in VPL.
    Other activities are ok.

    Do you know this problem?
    If you know the solution that I can fix, plz tell me.
  • shivani awasthi
    2023年05月6日(週六) 15:07
    Hi,
    We have been facing some issues for the past 6 days "Unable to run HTML/CSS/JS files in VPL, although Python files run successfully. Need help resolving the issue."
  • Minh Nguyen Ba
    2023年08月21日(週一) 12:02
    The "ID Number" is automatic generated. We are not able to set "ID Number" for VPL, it does not store custom value.
    We need ID Number to use in formular in Gradebook.

    How to fix this?
  • Steve Wentworth
    2023年09月14日(週四) 19:58
    I'm trying to edit some old test cases for VPL activities we have on our moodle. And I'm unable to edit the test case, in description it just shows the test case sort of read only in a navy background frame but no editor. What am I missing we are running VPL version 4.1 (2023042712) and Moodle 4.1.

    The same think happens when a create a new VPL activity, in description I only see the icons and no editor. Any help would be much appreciated.
  • Steve Wentworth
    2023年09月14日(週四) 21:30
    No issue, found it!
  • Juan Carlos Rodríguez-del-Pino
    2023年09月17日(週日) 16:08
    Dear Steve Wentworth,

    Thank you for bringing this to our attention.

    Given the extensive use of JavaScript in the VPL plugin, it is possible that the editor may experience disruptions after an upgrade. I recommend the following steps:

    1. The Moodle administrator should “purge all caches”. This can be accomplished by navigating to “Site administration -> Development -> Purge caches”.
    2. Some users may also benefit from clearing their browser's cache. This can be done by pressing “Ctrl + F5”.

    Additionally, I'd like to inform you that the current VPL version you are using, 4.1, is not the latest. Version 4.2 is available and is compatible with Moodle 4.1. Please note that VPL versions are not necessarily tied to the corresponding Moodle versions.

    I hope this resolves your issue. If you continue to encounter difficulties, please do not hesitate to reach out.

    Best regards,
  • Vitalis Hilarion Wihendro Halim
    2023年10月4日(週三) 13:04
    hi juan carlos, i interested to use it on our inhouse Learning Management System. can i contact you for detail discussion ?
  • Kumar Arun
    2024年03月6日(週三) 18:55
    nex- activity previous-activity not appearing.. kindly help to fix this UI
  • WAT Guyane
    2024年10月24日(週四) 19:35
    compatibility for Moodle 4.5 ?
  • Juan Carlos Rodríguez-del-Pino
    2024年10月25日(週五) 05:21
    Dear WAT Guyane,

    Thank you for your inquiry.

    We are currently conducting compatibility tests for the newly released Moodle 4.5. In our initial manual review, we haven’t identified any major issues so far. However, we are working to address some challenges with the Behat tests, which are not running due to interface changes in Moodle 4.5.
  • Geoffrey Hinton
    2024年11月2日(週六) 16:39
    Hi, I’m trying to create test cases in a way that only certain test cases are marked as sample test cases and that they receive a score of 0 even if the output is correct, similar to how it works on HackerRank. Could you guide me on how to configure test cases to function this way? I want them to appear as sample cases but not contribute to the overall score. Thanks!
  • Sandipa Mukherjee
    2025年04月27日(週日) 20:31
    Hi, I tried to run python, but its not working but if I run PHP code, its working fine.
    the error for python is
    Traceback (most recent call last):
    File "/home/p10303/hello.py", line 3, in forward(100)
    File "", line 6, in forward
    File "/usr/lib/python3.12/turtle.py", line 3875, in __init__
    Turtle._screen = Screen()
    ^^^^^^^^
    File "/usr/lib/python3.12/turtle.py", line 3730, in Screen
    Turtle._screen = _Screen()
    ^^^^^^^^^
    File "/usr/lib/python3.12/turtle.py", line 3741, in __init__
    _Screen._root = self._root = _Root()
    ^^^^^^^
    File "/usr/lib/python3.12/turtle.py", line 430, in __init__
    TK.Tk.__init__(self)
    File "/usr/lib/python3.12/tkinter/__init__.py", line 2345, in __init__
    self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    _tkinter.TclError: no display name and no $DISPLAY environment variable


    Please help

  • Juan Carlos Rodríguez-del-Pino
    2025年04月28日(週一) 19:00
    Hi Sandipa,
    First, I would like to point out that this is not the best way to ask questions, as there is no proper thread for each question and answer. Please, next time use the VPL forum (discussion area) for this kind of communication.
    Regarding your problem: the VPL system checks for the use of tkinter in your code to automatically switch to GUI mode. However, in some cases, it may not detect it correctly. To solve this, simply add a comment mentioning tkinter in your code.
    Also, remember not to name your file turtle.py, as this can cause conflicts with the standard Python Turtle module.
    Here is an example you can follow:
    import turtle
    # Tkinter
    screen = turtle.Screen()
    screen.bgcolor("white")
    screen.title("Turtle Example")
    # Create a turtle
    my_turtle = turtle.Turtle()
    my_turtle.shape("turtle") # Make the turtle look like a turtle
    my_turtle.color("blue")
    my_turtle.speed(3)
    # Move the turtle
    my_turtle.forward(100) # Move forward 100 units
    my_turtle.left(90) # Turn left 90 degrees
    my_turtle.forward(100)
    my_turtle.left(90)
    my_turtle.forward(100)
    my_turtle.left(90)
    my_turtle.forward(100)
    # Finish
    turtle.done()
    Please try this and let me know if you still encounter any issues.
    Best regards,
    Juan Carlos Rodríguez

1 2 3 4 5 6 7 8
Please login to post comments