@@ -128,17 +128,27 @@ conda activate plotly-dev
128
128
[ conda-env ] : https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#creating-an-environment-with-commands
129
129
[ virtualenv ] : http://docs.python-guide.org/en/latest/dev/virtualenvs/
130
130
131
- ### Install requirements
131
+ ### Install requirements - (Non-Windows)
132
+ ``` bash
133
+ (plotly_dev) $ pip install -r packages/python/plotly/requirements.txt
134
+ (plotly_dev) $ pip install -r packages/python/plotly/optional-requirements.txt
135
+ ```
136
+ ### Install requirements - (Windows + Conda)
137
+ Because Windows requires Visual Studio libraries to compile some of the optional dependencies, follow these steps to
138
+ complete installation and avoid gdal-config errors.
132
139
133
- $ pip install -r packages/python/plotly/requirements.txt
134
- $ pip install -r packages/python/plotly/optional-requirements.txt
140
+ ``` bash
141
+ (plotly_dev) $ pip install -r packages/python/plotly/requirements.txt
142
+ (plotly_dev) $ conda install fiona
143
+ (plotly_dev) $ pip install -r packages/python/plotly/optional-requirements.txt
144
+ ```
135
145
136
146
### Editable install of plotly packages
137
-
138
- $ pip install -e packages/python/plotly/
139
- $ pip install -e packages/python/chart-studio/
140
- $ pip install -e packages/python/plotly-geo/
141
-
147
+ ``` bash
148
+ (plotly_dev) $ pip install -e packages/python/plotly/
149
+ (plotly_dev) $ pip install -e packages/python/chart-studio/
150
+ (plotly_dev) $ pip install -e packages/python/plotly-geo/
151
+ ```
142
152
This will ensure that the installed packages links to your local development
143
153
directory, meaning that all changes you make reflect directly in your
144
154
environment (don't forget to restart the Jupyter kernel though!).
@@ -147,11 +157,11 @@ environment (don't forget to restart the Jupyter kernel though!).
147
157
148
158
Run the following commands in your virtual environment to use the
149
159
development version of ` FigureWidget ` ,
150
-
151
- $ jupyter nbextension enable --py widgetsnbextension
152
- $ jupyter nbextension install --py --symlink --sys-prefix plotlywidget
153
- $ jupyter nbextension enable --py --sys-prefix plotlywidget
154
-
160
+ ``` bash
161
+ (plotly_dev) $ jupyter nbextension enable --py widgetsnbextension
162
+ (plotly_dev) $ jupyter nbextension install --py --symlink --sys-prefix plotlywidget
163
+ (plotly_dev) $ jupyter nbextension enable --py --sys-prefix plotlywidget
164
+ ```
155
165
To make plotly plots show up in JupyterLab, you also need to [ install the plotly jupyterlab extensions] [ plotly-jl ] .
156
166
157
167
[ plotly-jl ] : https://plot.ly/python/getting-started/#jupyterlab-support-python-35
0 commit comments