Skip to content

Instantly share code, notes, and snippets.

@tuxedocat
Created November 15, 2019 06:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tuxedocat/1ec2f2f0f2256e928fb8f373eaa90455 to your computer and use it in GitHub Desktop.
Save tuxedocat/1ec2f2f0f2256e928fb8f373eaa90455 to your computer and use it in GitHub Desktop.
setup script taken from https://plot.ly/python/getting-started/
#!/bin/sh
# Avoid "JavaScript heap out of memory" errors during extension installation
# (OS X/Linux)
export NODE_OPTIONS=--max-old-space-size=4096
# Jupyter widgets extension
jupyter labextension install @jupyter-widgets/jupyterlab-manager@1.1 --no-build
# jupyterlab renderer support
jupyter labextension install jupyterlab-plotly@1.3.0 --no-build
# FigureWidget support
jupyter labextension install plotlywidget@1.3.0 --no-build
# Build extensions (must be done to activate extensions since --no-build is used above)
jupyter lab build
# Unset NODE_OPTIONS environment variable
# (OS X/Linux)
unset NODE_OPTIONS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment