This file contains 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
console.log("hiplot 1"); |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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 ast | |
import requests | |
url = 'http://localhost:5006/rest/post_data' | |
def post(value): | |
data = {'data': value} | |
response = requests.post(url, data = data) | |
if response.status_code==200: | |
print(ast.literal_eval(response.text)) |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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 | |
import hvplot.pandas | |
import panel as pn | |
pn.extension(sizing_mode="stretch_width") | |
PALETTE = [ | |
"#ff6f69", | |
"#ffcc5c", | |
"#88d8b0", |
This file contains 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 panel as pn | |
from panel.pane.plot import Matplotlib as _MatplotlibPane | |
import param | |
import numpy as np | |
from matplotlib.figure import Figure | |
from matplotlib import cm | |
from matplotlib.backends.backend_agg import FigureCanvasAgg # not needed for mpl >= 3.1 | |
pn.extension() |
This file contains 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 holoviews as hv | |
import numpy as np | |
import panel as pn | |
pn.extension(sizing_mode="stretch_width") | |
ACCENT_COLOR = "#37718e" # "#DF3874" | |
XS = np.linspace(0, np.pi) |
This file contains 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 altair as alt | |
import pandas as pd | |
import panel as pn | |
pn.extension("vega", sizing_mode="stretch_width") | |
data = pd.read_json( | |
"https://raw.githubusercontent.com/vega/vega/master/docs/data/penguins.json" | |
) |
This file contains 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
# pip install panel==0.12.4 bokeh==2.4.0 holoviews==1.14.6 hvplot==0.7.3 shapely==1.7.1 | |
# panel serve holoviz_linked_brushing.py --autoreload --show | |
import hvplot.pandas | |
import holoviews as hv | |
import panel as pn | |
from bokeh.sampledata.iris import flowers | |
pn.extension(sizing_mode="stretch_width") | |
hv.extension("bokeh") |
NewerOlder