|
21 | 21 | "source": [
|
22 | 22 | "#### conda (minimal python)\n",
|
23 | 23 | "```bash\n",
|
24 |
| - "(base) $ conda create -c conda-forge -n lsp 'python >=3.7,<3.8' 'jupyterlab=1.2' 'nodejs=11' python-language-server\n", |
| 24 | + "conda create -c conda-forge -n lsp 'python >=3.7,<3.8' 'jupyterlab=1.2' 'nodejs=11' python-language-server\n", |
25 | 25 | "# Also consider: r-languageserver [*]\n",
|
26 |
| - "(base) $ source activate lsp\n", |
27 |
| - "(lsp) $ pip install jupyter_lsp=0.7 --no-deps\n", |
28 |
| - "(lsp) $ jupyter lab build\n", |
29 |
| - "(lsp) $ jupyter lab \n", |
| 26 | + "source activate lsp\n", |
| 27 | + "pip install jupyter_lsp=0.7 --no-deps\n", |
| 28 | + "jupyter lab build\n", |
| 29 | + "jupyter lab \n", |
30 | 30 | "```"
|
31 | 31 | ]
|
32 | 32 | },
|
|
43 | 43 | "metadata": {},
|
44 | 44 | "source": [
|
45 | 45 | "##### `Dockerfile`\n",
|
46 |
| - "```docker\n", |
| 46 | + "```dockerfile\n", |
47 | 47 | "FROM jupyter/datascience-notebook:18ef2702c6a2\n",
|
48 | 48 | "\n",
|
49 | 49 | "RUN conda install --quiet --yes --freeze-installed \\\n",
|
|
97 | 97 | "source": [
|
98 | 98 | "##### Build and Start\n",
|
99 | 99 | "```bash\n",
|
100 |
| - "$ PORT=8899 NAME=lsp PASSWORD=change-me-silly WORK_VOLUME=. docker-compose up\n", |
| 100 | + "PORT=8899 NAME=lsp PASSWORD=change-me-silly WORK_VOLUME=. docker-compose up\n", |
101 | 101 | "```"
|
102 | 102 | ]
|
103 | 103 | },
|
|
124 | 124 | "\n",
|
125 | 125 | "Verify your lab works:\n",
|
126 | 126 | "\n",
|
127 |
| - "```\n", |
128 |
| - "$ jupyter lab --version\n", |
129 |
| - "$ jupyter lab\n", |
| 127 | + "```bash\n", |
| 128 | + "jupyter lab --version\n", |
| 129 | + "jupyter lab\n", |
130 | 130 | "```\n",
|
131 | 131 | "\n",
|
132 | 132 | "[lab-conda]: https://jupyterlab.readthedocs.io/en/stable/getting_started/installation.html#conda\n",
|
|
150 | 150 | "Verify your node works and is findable from python.\n",
|
151 | 151 | "\n",
|
152 | 152 | "```bash\n",
|
153 |
| - "(lsp) $ jlpm versions\n", |
| 153 | + "jlpm versions\n", |
154 | 154 | "```"
|
155 | 155 | ]
|
156 | 156 | },
|
|
159 | 159 | "metadata": {},
|
160 | 160 | "source": [
|
161 | 161 | "#### Install Jupyter[Lab] LSP\n",
|
| 162 | + "\n", |
162 | 163 | "```bash\n",
|
163 |
| - "$ pip install jupyter_lsp\n", |
164 |
| - "$ jupyter labextension install @krassowitz/jupyterlab-lsp\n", |
| 164 | + "pip install jupyter_lsp\n", |
| 165 | + "jupyter labextension install @krassowitz/jupyterlab-lsp\n", |
165 | 166 | "```"
|
166 | 167 | ]
|
167 | 168 | },
|
|
173 | 174 | "A number of language servers are built on the [reference implementation](https://github.com/microsoft/vscode-languageserver-node), powered by NodeJS. The most reliable place to install these is in the same folder from which you launch `jupyter lab`. For example, to install all the servers which are tested as part of `jupyterlab-lsp`:\n",
|
174 | 175 | "\n",
|
175 | 176 | "```bash\n",
|
176 |
| - "$ jlpm add \\\n", |
| 177 | + "jlpm add \\\n", |
177 | 178 | " bash-language-server \\\n",
|
178 | 179 | " vscode-css-languageserver-bin \\\n",
|
179 | 180 | " dockerfile-language-server-nodejs \\\n",
|
180 | 181 | " vscode-html-languageserver-bin \\\n",
|
181 | 182 | " javascript-typescript-langserver \\\n",
|
182 | 183 | " vscode-json-languageserver-bin \\\n",
|
183 | 184 | " yaml-language-server \n",
|
184 |
| - "$ jupyter lab\n", |
| 185 | + "jupyter lab\n", |
185 | 186 | "```"
|
186 | 187 | ]
|
187 | 188 | }
|
|
0 commit comments