Skip to content

Commit

Permalink
lsp auto completion
Browse files Browse the repository at this point in the history
  • Loading branch information
muhac committed Nov 2, 2024
1 parent 4c0defe commit 960fe3b
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ RUN eval "$('/root/anaconda/bin/conda' 'shell.bash' 'hook')" && conda activate t
npm set prefix /root && npm install -g --save-dev remark-language-server \
remark-preset-lint-consistent remark-preset-lint-recommended && \
conda clean -a && pip cache purge && npm cache clean --force && \
jupyter labextension disable "@jupyterlab/apputils-extension:announcements" && \
echo "jupyter lab" > /root/run_jupyter.sh

COPY JupyterLabConfig/jupyter_lab_config.py /root/.jupyter/jupyter_lab_config.py
Expand All @@ -55,7 +56,7 @@ COPY JupyterLabConfig/channels.condarc /root/.condarc
RUN eval "$('/root/anaconda/bin/conda' 'shell.bash' 'hook')" && conda activate torch && \
conda install -c pytorch -c nvidia -c conda-forge --strict-channel-priority \
pytorch torchvision torchaudio pytorch-cuda=12.4 \
xgboost spacy transformers \
transformers datasets spacy xgboost \
django beautifulsoup4 && \
pip install opencv-python && \
conda clean -a && pip cache purge
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"availableProviders": {
"lsp": 1000,
"CompletionProvider:context": 500,
"CompletionProvider:kernel": 550
},
"providerTimeout": 1000,
"showDocumentationPanel": true,
"autoCompletion": true
}
34 changes: 34 additions & 0 deletions JupyterLabConfig/jupyterlab-lsp/completion.jupyterlab-settings
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"continuousHinting": true,
"suppressContinuousHintingIn": [
"Comment",
"BlockComment",
"LineComment",
"String"
],
"suppressTriggerCharacterIn": [
"Comment",
"BlockComment",
"LineComment",
"String"
],
"waitForBusyKernel": true,
"theme": "vscode",
"kernelCompletionsFirst": false,
"caseSensitive": true,
"includePerfectMatches": false,
"preFilterMatches": true,
"labelExtra": "auto",
"layout": "side-by-side",
"typesMap": {
"<unknown>": "Kernel",
"instance": "Value",
"path": "File",
"param": "Variable",
"missing": "Constant",
"nothing": "Constant",
"undefinitializer": "Constant",
"base.devnull": "Constant"
},
"disable": false
}

0 comments on commit 960fe3b

Please sign in to comment.