Skip to content

Instantly share code, notes, and snippets.

@rodnaxel
Created November 27, 2019 13:42
Show Gist options
  • Save rodnaxel/54e12622b95fbc2f4482bd13b898f63a to your computer and use it in GitHub Desktop.
Save rodnaxel/54e12622b95fbc2f4482bd13b898f63a to your computer and use it in GitHub Desktop.
Create data science env on Linux used to Pipenv
# Create virtualenv used to pipenv
mkdir datascience/
cd datascience/
pipenv install --python 3.7
pipenv shell
# Install neccesary package
pipenv install numpy pandas jupyter ipython plotly matplotlib
# Install support plotly
# (for more information https://plot.ly/python/getting-started)
pipenv install jupyterlab==1.2 "ipywidgets>=7.5"
# Avoid "JavaScript heap out of memory" errors during extension installation
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
unset NODE_OPTIONS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment