Skip to content

Instantly share code, notes, and snippets.

@tuxedocat
Created November 15, 2019 06:20
Show Gist options
  • 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/[email protected] --no-build
# jupyterlab renderer support
jupyter labextension install [email protected] --no-build
# FigureWidget support
jupyter labextension install [email protected] --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