CRI-iAtlas / iatlas-notebooks

Collection of R notebooks to enable local iAtlas plotting and functionality.
2 stars 0 forks source link

cell_content_barplots.Rmd may be looking to use jupyter notebook function embed_notebook #2

Closed vthorsson closed 1 month ago

vthorsson commented 2 years ago

Executing

notebook_barplot(
  df,
  sort_by_var_choice = "Group", 
  reorder_func_choice = "None",
  show_error_bars = TRUE,
  ylab = 'Fraction Mean', 
  xlab = 'Fraction Type by Group',
  title = 'Tissue type fractions by group'
)

gives error message

Error in embed_notebook(iatlas.modules::plotly_bar(plot_data = barplot_df, : could not find function "embed_notebook"

embed_notebook called within definition of notebook_barplot in iatlas-notebooks/functions/notebook_functions.R

vthorsson commented 2 years ago

@Gibbsdavidl ,I guess one (not pretty) solution is to have two versions of notebook_barplot, one for native Rmd and one for jupyter (?)