Hi,
Setting environment variables is platform- and even shell-specific. Assuming you are on linux with a bash like shell, you can set the variable when you start the notebook:
BOKEH_NODEJS_PATH="path/to/node" ipython notebook
or to set it permanently for a shell session use export:
export BOKEH_NODEJS_PATH="path/to/node"
If you are one a different shell you will have to do a web search since I am only immediately familiar with Bash-like shells.
That said, it still seems like the most likely explanation is that somehow the notebook is installed and running out of a different conda environment, one that does not have node installed.
Thanks,
Bryan
On Mar 26, 2019, at 12:44 AM, NumesSanguis numess...@gmail.com wrote:
Hello,
I’m trying to get the spectrogram example (https://github.com/bokeh/bokeh/tree/master/examples/app/spectrogram) to work in Jupyter Notebook on Ubuntu 18.04. It works for me in the terminal, but not when executing the Python code in a Notebook using the same conda environment.
The following code will result in a: RuntimeError: node.js v6.10.0 or higher is needed to allow compilation of custom models ("conda install nodejs" or follow [https://nodejs.org/en/download/)](Node.js — Download Node.js®))
from bokeh.io import output_notebook, show
from bokeh.core.properties import Color, Float, Int, Override, Seq
from bokeh.models import Renderer
class WaterfallRenderer(Renderer):
implementation = “waterfall.ts”
output_notebook()
See for all details this GitHub issue: https://github.com/bokeh/bokeh/issues/8790
Based on the comments I tried the following:
!node --version
/bin/sh: 1: node: not found
So indeed it cannot find NodeJS.
In the GitHub issue it was suggested to set BOKEH_NODEJS_PATH. However, how do I do this?
I have found a node installation here: /home/username/anaconda3/envs/bokeh/bin
–
You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.
To unsubscribe from this group and stop receiving emails from it, send an email to bokeh+un...@continuum.io.
To post to this group, send email to bo...@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/c7019b2b-ba7b-4cbe-8c3c-fd204e9aff39%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.