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

Dash live model training #211

Merged
merged 27 commits into from Jul 24, 2019
Merged

Dash live model training #211

merged 27 commits into from Jul 24, 2019

Conversation

christopherjeon
Copy link
Contributor

Issue for app: #33

App pull request

  • This is a new app
  • I am improving an existing app (redesigns/code "makeovers")

About

Workflow

  • I have created a branch in the appropriate monorepo, and the
    elements necessary for successful deployment are in place.
  • If the app is a redesigned and/or restyled version of an
    existing gallery app, I've summarized the changes requested in the
    appropriate Streambed issue and confirm that they have been applied.
  • If the app is on the Dash Gallery portal, I have added a link to
    the GitHub repository for the source code in the portal description.
  • I have removed all Google Analytics code from the app's
    assets/ folder.

The pre-review review

I have addressed all of the following questions:

  • Does everything in my code serve some purpose? (I have removed
    any dead and/or irrelevant code.)
  • Does everything in my code have a clear purpose? (My code is
    readable and, where it isn't, it has been commented appropriately.)]
  • Am I reinventing the wheel? (I have used appropriate packages to
    lessen the volume of code that needs to be maintained.)

@celinehuang
Copy link
Contributor

image
I think this is in-between mobile and desktop version, looks kinda odd so either keep it mobile or desktop

@celinehuang
Copy link
Contributor

image

  1. Maybe reduce the margin on the right side and make the fonts bigger
    image
  2. Make sure the mobile layout works for all mobile version, this is the IPhone 5/SE
    image

Copy link
Contributor

@celinehuang celinehuang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason why you removed the flex boxes? Because the mockup has the boxes. Otherwise everything looks good :)

.banner {
height: 75px;
background-color: #191e27;
/* border-radius: 5px 5px 2px 2px; */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove unnecessary comments!

apps/dash-live-model-training/assets/base.css Outdated Show resolved Hide resolved
width: 100%;
}

._dash-undo-redo {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not needed after the update to dash==1.0.0

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are you referring to the entire file or the _dash-undo-redo part?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just the _dash-undo-redo part! That button is hidden by default.


Dash abstracts away all of the technologies and protocols required to build an interactive web-based application and is a simple and effective way to bind a user interface around your Python code. To learn more check out our [documentation](https://plot.ly/dash).

Try out the [demo app here](https://dash-live-model-training.plot.ly/).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is a dead link!

apps/dash-live-model-training/app.py Outdated Show resolved Hide resolved
apps/dash-live-model-training/app.py Outdated Show resolved Hide resolved
font-weight: 400;
src: local('Roboto'), local('Roboto-Regular'), url(https://fonts.gstatic.com/s/roboto/v19/KFOmCnqEu92Fr1Mu4mxKKTU1Kg.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can just include all these fonts in a css import in your base.css using this line @import url('https://fonts.googleapis.com/css?family=Open+Sans|Roboto&display=swap');

apps/dash-live-model-training/requirements.txt Outdated Show resolved Hide resolved
apps/dash-live-model-training/runtime.txt Outdated Show resolved Hide resolved
},
],
placeholder="Select a demo dataset",
searchable=False,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I recommend adding a default value for dropdown-demo-dataset and dropdown-simulation-model. Also maybe add some headers for each dropdown to explain what it does.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^ 👍 to this comment!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I set the default values to MNIST and Simple Conv Net now

apps/dash-live-model-training/app.py Outdated Show resolved Hide resolved
apps/dash-live-model-training/app.py Outdated Show resolved Hide resolved
apps/dash-live-model-training/app.py Outdated Show resolved Hide resolved
apps/dash-live-model-training/app.py Outdated Show resolved Hide resolved
apps/dash-live-model-training/app.py Outdated Show resolved Hide resolved

Try out the [demo app here](https://dash-gallery.plotly.host/dash-live-model-training/).

![animated1](images/animated1.gif)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure this is updated!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated!

@@ -0,0 +1,38 @@
## Getting Started with the Demo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## Getting Started with the Demo
## Getting Started With the Demo

shammamah-zz
shammamah-zz previously approved these changes Jul 19, 2019
Copy link
Contributor

@shammamah-zz shammamah-zz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome work! 💃

@christopherjeon christopherjeon requested review from celinehuang and removed request for ronniebugia and celinehuang July 19, 2019 18:11
celinehuang
celinehuang previously approved these changes Jul 22, 2019
Copy link
Contributor

@celinehuang celinehuang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💃

Copy link
Contributor

@shammamah-zz shammamah-zz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💃

Copy link
Contributor

@celinehuang celinehuang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💃 looks good!

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.

None yet

4 participants