Azure / Azure/MachineLearningNotebooks

Visualizations with BokehJS are doubling

Aberta
#1,614 0 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
Jupyter Notebook
Estrelas
4.4k
Forks
2.6k
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

Today when booting up my ML environment, I am seeing a doubling of Bokeh visuals:

![image](https://user-images.githubusercontent.com/59487793/137195188-39070e2e-e80d-4bab-9cd7-5baa4d024ee0.png)

![image](https://user-images.githubusercontent.com/59487793/137195347-05700dd4-27a0-4c26-a8b3-40436593f04c.png)

These are samples from the [Bokeh Jupyter Notebooks samples](https://hub.gke2.mybinder.org/user/bokeh-bokeh-notebooks-385m2jz1/notebooks/tutorial/00%20-%20Introduction%20and%20Setup.ipynb). I have tried restarting my compute and switching to a different compute, but see the same result

```
from bokeh.io import output_notebook, show
output_notebook()
```

```
# Plot a complex chart with interactive hover in a few lines of code

from bokeh.models import ColumnDataSource, HoverTool
from bokeh.plotting import figure
from bokeh.sampledata.autompg import autompg_clean as df
from bokeh.transform import factor_cmap

df.cyl = df.cyl.astype(str)
df.yr = df.yr.astype(str)

group = df.groupby(by=['cyl', 'mfr'])
source = ColumnDataSource(group)

p = figure(plot_width=800, plot_height=300, title="Mean MPG by # Cylinders and Manufacturer",
x_range=group, toolbar_location=None, tools="")

p.xgrid.grid_line_color = None
p.xaxis.axis_label = "Manufacturer grouped by # Cylinders"
p.xaxis.major_label_orientation = 1.2

index_cmap = factor_cmap('cyl_mfr', palette=['#2b83ba', '#abdda4', '#ffffbf', '#fdae61', '#d7191c'],
factors=sorted(df.cyl.unique()), end=1)

p.vbar(x='cyl_mfr', top='mpg_mean', width=1, source=source,
line_color="white", fill_color=index_cmap,
hover_line_color="darkgrey", hover_fill_color=index_cmap)

p.add_tools(HoverTool(tooltips=[("MPG", "@mpg_mean"), ("Cyl, Mfr", "@cyl_mfr")]))

show(p)
```

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Direção de pesquisa

Reproduza o problema no exemplo vinculado do Bokeh Jupyter Notebook usando os pontos de entrada mostrados output_notebook() e show(p). Compare a visualização renderizada com as duas capturas de tela e determine primeiro se a duplicação vem do ambiente do notebook ou da integração do BokehJS; considera-se concluído quando o exemplo é renderizado uma única vez.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
jupyter-notebook, python
Domínio
data-visualization
Tipo de issue
Bug
Dificuldade
4/5
Tempo estimado
3-5 dias
Status de atividade
Estagnada
Clareza
Precisa de esclarecimento
Facilidade para iniciantes
25/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.