widget-ts-cookiecutter icon indicating copy to clipboard operation
widget-ts-cookiecutter copied to clipboard

Development installation with virtual environment

Open jofmi opened this issue 4 years ago • 2 comments
trafficstars

Hi everyone,

the readme only shows how to do the development installation in conda.

here is how i managed with virtualenvwrapper in linux, maybe it's worth adding to the readme!

  1. Installing npm with yarn:
sudo apt install npm
npm install yarn
  1. Creating a virtual environment
mkvirtualenv widget_dev
workon widget_dev
  1. Installing the widget and adding the virtual environment as an IPython Kernel:
pip install -e ".[test, examples]"
ipython kernel install --name widget_dev --user

In jupyter lab, one can then select the widget_dev kernel on the top right In jupyter notebook, under the menu section Kernel

jofmi avatar Mar 18 '21 18:03 jofmi

Hi @JoelForamitti good point thanks!

Would you like to make a PR with changes that you feel would have helped you?

ianhi avatar Mar 18 '21 18:03 ianhi

@ianhi ok, i made a PR here: https://github.com/jupyter-widgets/widget-ts-cookiecutter/pull/95

jofmi avatar Mar 18 '21 19:03 jofmi