Save as png in google Colab

Installing phantomjs this way:

!npm install phantomjs-prebuilt

and using the exact reported path reported in the output:

Done. Phantomjs binary available at /content/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs

like this:

import os
os.environ['BOKEH_PHANTOMJS_PATH'] = "/content/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs"

works on colab for me:

All OSS maintainers want their users to succeed. In the spirit of constructive feedback I’d like to share what was frustrating about this exchange for me:

  • I suggested several different things to try
  • You never really said which (if any) you tried
  • And if you did, never said what the actual exact result was

There are far more users than maintainers. In the grand scheme, OSS can only possibly work if you help us help you, e.g. by not being circumspect, and erring always on the side of providing too much information or context.

1 Like