Skip to content
Snippets Groups Projects
Commit e9b0f9cc authored by Julian Rasch's avatar Julian Rasch
Browse files

removed unnecessary files and cleaned up

parent b5c686ba
No related branches found
No related tags found
1 merge request!7Switch jupyterlab and app
......@@ -2,7 +2,8 @@ FROM quay.io/jupyter/datascience-notebook:hub-5.2.0
USER root
RUN pip install --no-cache-dir streamlit jupyter-server-proxy
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt && rm requirements.txt
ENV HOME_PATH=/home/jovyan/
......@@ -20,6 +21,5 @@ RUN chown -R jovyan /streamlit/app/
RUN python -m nltk.downloader stopwords
RUN python -m nltk.downloader wordnet
RUN python -m nltk.downloader punkt
RUN python -m spacy download en_core_web_sm
USER jovyan
\ No newline at end of file
name: "base"
channels:
- defaults
# dependencies:
# - add packages here
# - one per line
prefix: "/opt/conda"
from dash.dependencies import (
Input,
Output
)
from dash import html
def register_callbacks(app):
@app.callback(
Output('output-container-button', 'children'),
[Input('submit-btn', 'n_clicks')],
[Input('input-text', 'value')]
)
def update_output(n_clicks, input_value):
if n_clicks > 0:
return html.Div([
html.Label("You entered:"),
html.P(input_value)
])
else:
return ''
from dash import html
from dash import dcc
layout = html.Div([
html.H1("Yeay, my app!"),
html.Div([
html.Label("Enter your text:"),
dcc.Input(id='input-text', type='text', value=''),
html.Button('Submit', id='submit-btn', n_clicks=0),
]),
html.Div(id='output-container-button')
])
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment