Coder Social home page Coder Social logo

numbas / editor Goto Github PK

View Code? Open in Web Editor NEW
60.0 11.0 62.0 32.65 MB

An editor for the Numbas e-learning system.

Home Page: http://numbas.mathcentre.ac.uk

License: Apache License 2.0

Python 15.38% CSS 1.36% HTML 15.38% JavaScript 62.10% Makefile 0.27% Less 5.51%
newcastle-university javascript math e-assessment assessment education algebra editor python django

editor's People

Contributors

akshett avatar andersshenholm avatar anshitabaid avatar anthonyyoud avatar calvinm4 avatar chrismgraham avatar christianp avatar dependabot[bot] avatar dgabrielson avatar georgestagg avatar gerlou avatar helenashton avatar janonbread avatar jastee07 avatar joshuacapel avatar keyboardguy avatar lycanic avatar maanasarora avatar maheshwaran17 avatar mjguru avatar nabeelsait avatar stuwilmur avatar sudiptog81 avatar yannickneyt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

editor's Issues

Displaying decimals as fractions when fractionNumber rule turned on

See question Bill2 in the editor. The ruleset std in that question includes the rule fractionNumbers. Although the variables {a}, {b} are set as decimals the question prompt $\simplify[std]{{a}+{b}}$ converts the decimals into fractions. fractionNumbers is meant to take fraction expressions and retain them as fractions, not to convert decimal numbers.

The html editor for content areas

When clicked on you sometimes get very small edit windows, or very narrow edit windows or quite rarely, well proportioned windows.

Navigation settings for exams

These should all be switched on by default , they are turned off at present, allowing for free navigation and for question regeneration.

All of question not displayed in editor.

Several times when bringing, for example, MAS1041CBA2_4, into the editor the last sections of the question are missing. However if I keep on trying this, eventually all of the question is loaded.

Deleting questions and exams not showing the question deletion.

This is an issue for users to be aware of.
Created a copy of a question in an exam and added to it to the same exam. Then clicked on the copy to put it into the question editor and deleted it there using the red button. On accessing the exam by clicking on its tab, the exam list of questions still showed the copy as you need to refresh to show the deletion.

maths display in content areas with simplify

For example, if
$\simplify[std]{{a}+{b}x} $ is in a content area and is clicked on we get the maths display subvar(a,gray)+subvar(b,gray)x rather than the maths display expected.

Better delete links

Instead of showing a separate form when clicking on Delete, show a JS dialog box of some sort, which POSTs directly to the exam_delete URL. Form could be as in editor/templates/(exam|question)/delete.html.

Themes

Users should be able to

1 - choose a theme to use with an exam

2 - upload themes in .zip format.

Error message on code which runs

See advice in MAS1041CBA3_5 and in particular the advice for the second question. The cursor on the eqnarray there reports an error although the question compiles and runs. I inserted simplify and displaystyle in various places and this appears to be the reason why the error message appeared in the first place(?)

Simple editing mode for questions

Only content areas and (selected) variables visible/editable. "Advanced mode" button somewhere on the page switches to the detailed view with everything editable.
Which view users see by default should be a setting.

Adding and deleting Show steps is broken

Tried to add Steps in a question which does not have Steps (MAS1142 CBA1_5) . It did not appear when the question was run. I tried to delete it in the editor and another copy of the Steps appeared! Eventually found myself with 4 copies of now empty Steps. (Not quite sure how the content was removed!)

Error message on adding a blank line in an editor content area

If you add a new line in a content area in the editor (but do not type anything in) an error message is generated as follows on attempting to run from the editor.

Error making the preview: Compilation failed. Failed to compile exam Traceback (most recent call last): File "/srv/numbas/dist/bin/exam.py", line 58, in makeContentNode return etree.fromstring(''+s+'') File "/usr/lib/python3.1/xml/etree/ElementTree.py", line 947, in XML parser.feed(text) File "/usr/lib/python3.1/xml/etree/ElementTree.py", line 1224, in feed self._parser.Parse(data, 0) xml.parsers.expat.ExpatError: undefined entity: line 4, column 5 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/srv/numbas/dist/bin/exam.py", line 273, in tostring xml = self.toxml() File "/srv/numbas/dist/bin/exam.py", line 267, in toxml questions.append(q.toxml()) File "/srv/numbas/dist/bin/exam.py", line 380, in toxml que...............

However, if you type something in that line then no error message and the question runs.

Maths display in content areas in the editor

Look at MAS1141 CBA1_1
The statement contains latex in display mode. Clicking on this shows the maths display for only part of the latex, although when the question is run the display is fine. The html editor shows no spaces or anything untoward (as far as I am concerned!). This may be an effect of copying and pasting as for example the question further down in this example asks:

Find the unit vector $\boldsymbol{\widehat{C}}$ in the direction of $\boldsymbol{C}$.

The \boldsymbol{ was copied and pasted and immediately this was done the error "Missing close brace" appeared but remained even though the close brace was added.
But on running this also displayed properly.

Deleting an exam

Copied an exam. Then chose to delete the copy. The question about whether or not I really wanted to delete it was referring to a question not the copy's name. So I chickened out as I might have removed all the exams as it looks like a bug.
Created Test exam and a copy. Tried to delete copy, and chose yes , the name of the exam still exists even after refreshing. Get error page on accessing. Tried to delete the original Test. Asked whether or not I wanted to delete a question, not an exam, somehow chosen from the list of questions and not even in the exam. So once again I made my excuses and left.

New author's notes section and maths display

On occasion I would use the notes to explain the reason why I chose a particular mode of solution for the question or some other mathematical comment. In that case there would normally be maths in the notes relevant to the question and this should be displayed for the author and for other authorised authors as well. Could Test Run also display the notes?

Display on entering exponentials with negative powers in answers. Also expressions starting with negative fractions.

Entering e^(cx) for a negative c in an answer results in a display with brackets around the c, whereas other displays in content areas do not have the brackets. See MAS1041CBA3_2. This also occurs with the revealed answer.

On entering an expression which starts with a negative fraction e.g. -3/4e^x-7/4x^4 then the first negative fraction is not displayed nicely, whereas the second one is. An issue with the negative as a unary operator?

ruleset not being obeyed

In question MAS1041CBA2_4 the last part has a mathematical expression input as a fraction. Ruleset used is dPoly. But if the fraction has a negative numerator then the display does not follow the rule and gives a nasty display.

Error in answer expression parsing on revealing

From MAS1041CBA3_8 answer expression for second question.

(-({a}_x+{b})^2/{c})_cos({c}_x+{d}) gives, for example, (-(2x+7))^2_cos(3x+4) on revealing. Clearly wrong.
I have had to write as
-(({a}_x+{b})^2/{c})_cos({c}*x+{d}) in order to get the correct expression

Variables in the displaying maths part of the help documentation

If you write something like [\int \var{a} y;dy] in the display maths test area of the displaying maths section then very nicely we have a spotted as a variable. However if we write [\int \simplify{{a} y};dy] then not only a is displayed as a variable but y is given as one, which it is not.

Answer fields for mathematical expressions

It is difficult to edit these answer fields and to see if they are correct, other than running the questions and using reveal. The field is to small and there should be a display mode for the answer

Using \eqnarray in context areas

Doesn't give any maths display in rich text input. The first \eqnarray is surrounded by a box, the rest as is.
Similarly for \align.

Questions in exams: run,delete and copy buttons

Have the buttons for running and copying for each question in the list of questions for an exam (as well as the delete button). This is for purely local purposes in the exam. The copying button would create a reference to the copy of the question into the same exam. It is often the case that you want to use a question for a template for other questions in an exam. Also being able to run a single question within an exam would be useful.

Long definition of a variable.

If a variable has a long definition then the definition is shown as a scroll bar in the variables section with no other detail.
For example, variable d1 in MAS1041_20122013_CBA1_1

Exam upload

Should uploading an exam also upload any questions defined within that exam?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.