Skip to content
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

[Experiment] Python code display in front end #514

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

edwardchalstrey1
Copy link
Contributor

This PR isn't intending to be merged in its current state, but explores some of the options from #347

I've tried to think about how we might auto-generate the ~"5 lines of scivision code" needed to load a datasource, a model and generate a prediction. The difficulty I realise it that that isn't actually how scivision works currently, there is no simple "5 lines" approach. We could come closer to that after #480 is resolved, especially if this results in no additional steps between load_dataset and model.predict. A model page could then have code displayed like so (see the code changes in this PR):

Screenshot 2023-01-31 at 16 07 46

Having said this, it might be preferable to not have any code on the model pages and instead save this specifically for the proposed matching page in #347

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants