New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improvements to pl-matrix-output element #1453
Conversation
@eliving2 would you mind adding a new example question that shows off this element? See |
It seems that TAM 251 is using this element to display any variables, and not just matrices. To avoid getting other PL users confused, I think we should create an example question that highlights the features of |
@mfsilva22 any particular reason this PR was closed? |
@mfsilva22 @mwest1066 I noticed a mistake while adding attributes for tab display and finishing the example question ( I use |
I agree that adding |
The example question is awesome! It really helped me to review the code better. Thanks! |
Two other things:
Sorry to expand the scope of your work by asking these questions :-) But I think it would make this a much more powerful element if it could just do a little bit more? |
@mwest1066 funny you are bringing up the 1D array support. We should bring @tbretl to this discussion as well. When I was implementing Not that I want the extra work, but I do (continue to) agree that only allowing for 2d and scalars is not the best route. |
@mfsilva22 You closed the PR again :( |
Renamed attributes, removed duplicate code, added default-tab attribute
@mwest1066 , taking @mfsilva22 's comment into consideration, should I rename the element to If so, how would that work? Would this just be a "new" element and |
@eliving2 I think doing a rename to |
exampleCourse/courseInstances/Sp15/assessments/plelementexamples/infoAssessment.json
Outdated
Show resolved
Hide resolved
Returned pl-matrix-output to it's original function, removed from documentation
Required updating `numpy_to_matlab` in `prairielearn.py`
If language is 'mathematica' and A is a 2D ndarray, the string looks like this: | ||
|
||
{{ ..., ... },{ ..., ... }} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does the comment below need updating now that 1D arrays are supported?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually, it looks like the comments above need updating as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And the function name should not be string_from_2darray()
anymore. Maybe string_from_array()
?
@tbretl could you take a look at the code in this PR that adds 1D array output to |
Added Mathematica tab to matrix-output
Added comment capability as a local (optional) parameter named
params-comment
, works with all three coding languages