-
Notifications
You must be signed in to change notification settings - Fork 102
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
Enhanced the output viewer to display html outputs (in windows machines), improve viewing of graphs and text outputs and improve processing of objects #7853
Conversation
updated output1 branch from master
@Patowhiz Congratulations on getting rid of the 700+ CEF files. I closed and reopened Visual Studio and did a rebuild solution. I got the following warnings: I checked my NuGet packages and Visual Studio had automatically installed the CEF packages: These were older versions so I upgraded 'CefSharp.WinForms' to the latest version. This automatically upgraded the 3 dependency packages: But I still got the same three warnings. Do you get these warnings also? Can we remove them? I will now start the code peer review. |
@lloyddewit I think that's just because the dll targets an X86 CPU architecture. That's what the message says. |
yes, I think you're correct - thank you |
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.
@Patowhiz Thank you for this large and significant PR.
I only have fairly minor comments
@rdstern @lloyddewit this is now ready for you. @rdstern As discussed I've added the new implementation of setting the heights of the outputs. The setting is in the options dialog. The English description of this new setting is not available because it is being translated. I think the translation bit can be done in a separate PR. I've set maximum output heights to be 300 by default. Also not, objects are not being displayed on the view objects dialog. I noticed I have to make changes on different controls for this. I think it's best to do that in a different PR, I now have this task as my top priority. |
@Patowhiz there are 15-20 open comments above. If you resolve them and let me know when done, then I'll review this PR again. |
@lloyddewit I have addressed all the comments. Dialogs that demonstrate the new changes
Dialogs that need discussions before refactoring
Dialogs that can be refactored by the team to use the new implementation
Issues known
The above issues and others have been outlined in issue #7852 as follow up issues. New enhancements and concepts introduced by this PR
@rdstern the changes made in this PR affect almost all dialogs in the background. We are aiming for another release before December. I suggest while we wait for @lloyddewit code review, you do all your testing through changes in this PR. I have updated it with the latest changes from the master. I'm keen on identifying any regression I may have introduced early enough. Thanks. |
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.
@Patowhiz this looks great.
I tried all the dialogues you said have changed. They all seem ok to me, though I couldn't see what was different in the scatterplot (which you said was changed) and another graph. I tried the bar chart and it seems to behave similarly. I like that you have still left the R-viewer available, and also tried plotly.
You mention that the Describe > 2/3 variable > Summarise still needs discussion. Just to add that this dialogue also has a pull request, (#7920) so perhaps that should be merged first. Vitalis is doing that. Or perhaps he could include the changes for the new output within it?
Can this be merged now if @lloyddewit is also happy, or do things on objects need to change first?
@rdstern I'd suggest PR #7920 by @Vitalis95 to wait . The changes made here are meant to demonstrate how dialogs should use the save control. @rdstern are you happy with the height set for the outputs, they have fixed heights. We now have a control for editing and viewing scripts. Should I use the control in the output viewer as well? |
@Patowhiz There are 3 conflicts that need to be resolved. Hopefully when they are resolved we should be able to merge this change |
@ChrisMarsh82 @lloyddewit I have resolved the conflicts. Would be good to have this merged soon, so that @rdstern can keep testing anything broken before our next release. |
@Patowhiz I comment as I try different things. You only see half the graph. I originally thought it wasn't scrolling to the bottom, but the half is all there is. You can maximise and that works well. I am now trying more things! The maximise is fine though. The second table was also fine - here it is: It initially looks cut-off like the graph above really is, but you can scroll down to the bottom of the table. So this is great. Finally, so far, I note that saving graphs now doesn't seem to save anything. It used to save the graphs for the session and then they disappeared. Now they are currently not saved. I believe @Patowhiz knows about this. Whether the object stuff will get into the next release, is not so clear. Higher priority is the smaller improvements so all dialogues that use a browser (e.g. one variable frequency) can now use the output window. |
@Patowhiz and @ChrisMarsh82 I note that none of the points above prevent the new system being used. So I wonder about even merging this pull request in its current form? I remain very keen to have a new version (0.7.8?) in time for an important climatic workshop that starts on 5th December in Reading. But it is for a group who would be ok (even happy) to be the first on a provisional release. So it needs to be downloadable from slack, but not necessarily from the website. |
@rdstern thanks for going through the PR. Interesting to see why the graph produced is not scrollable. I'll check on that, I'm keen also to find out of there is other graphs produced that are not scrollable. Remember, we deliberately decided to limit the size of the outputs in the output window, reason being, at times we have very long outputs and they become problematic when scrolling, we didn't have a work around until now that we have the new maximise feature. I'm aware of the blank black. It relates to rendering in windows 11 machines that have high resolutions, it's not present in windows 10 machine. I'm already thinking about this. |
@Patowhiz Thank you for all the changes. I resolved all the open comments apart from 5. Please see above. I also have many compilation errors (see example below). It seems to be related to VB and WinForms classes. Did something change in the project configuration? If you don't have this problem, then should we ask another developer to test in case the problem is with my system? If we can resolve the above, then I'm happy to approve. Thanks |
@lloyddewit this is odd. It compiles and runs fine in 2 machines. @rdstern did you get the same compilation errors, I presume you were able to test because it compiled fine on your end. |
@Patowhiz and @lloyddewit it ran on my machine. And I am usually the odd one out here - that it doesn't run on my machine, but is ok on many others. |
@Patowhiz @lloyddewit I have tried with my machine, this is what I got |
@Patowhiz I have tried the I also tried the |
@rdstern @N-thony |
@N-thony thanks for testing whether this PR compiles. |
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.
@Patowhiz and @lloyddewit I am still getting the same features as reported earlier. But no problem compiling etc.
I am approving, as I can live with those problems for now, and it will be good for the team to work on the remaining dialogues that currently give html output in a browser.
@Patowhiz Regarding my compilation errors, I deleted the PR branch, made a new PR branch and did a 'rebuild solution'. It automatically downloaded the CefSharp library, fixed the compilation errors and built successfully. |
Thanks @lloyddewit. |
This PR replaces PR #7782. It aims to omit the CEF packages from GitHub.
@lloyddewit I managed to omit the CEF packages from GitHub.
I did this by copying changes manually because of the urgency.
The code changes reviewed in PR #7782 are still the same.
@africanmathsinitiative/developers this is ready for review.
Fixes #7121
Fixes #7808
Fixes #7778
Fixes partly #7727
Follow up issues have been outlined in issue #7852.