This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# the sliders | |
sliders = [ | |
# put a blank line at the top | |
html.Br(), | |
# slider 1 | |
dcc.Slider( | |
# set the scale | |
0, 25, | |
value=12.5, | |
id='indy_over_tools', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# instantiate the app and set the bootstrap theme | |
app = JupyterDash(__name__, external_stylesheets=[dbc.themes.SOLAR]) | |
# layout the app | |
app.layout = html.Div([ | |
html.Br(), | |
# first row | |
dbc.Row([ | |
# title left | |
dbc.Col( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://docs.python.org/3/library/inspect.html | |
import inspect | |
print(inspect.getsource(mystery_function)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
# number of rows of dataframe | |
no_rows = len(df) | |
pd.options.display.max_rows = no_rows | |
print(df) | |
# then cut and paste into a text file | |
# and use find and replace to add in the comma's etc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ( | |
"fmt" | |
"math" | |
) | |
var j int = 10 | |
func Sqrt(x float64) float64 { | |
return math.Sqrt(x) | |
} |
OlderNewer