forked from jupyter-server/jupyter_server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
set LSP to create virtual documents in jupyter's runtime directory (j…
- Loading branch information
Showing
2 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
"""Use this file to configure Jupyter Server and its extensions | ||
""" | ||
import os | ||
|
||
from jupyter_core.paths import jupyter_runtime_dir | ||
from traitlets.config import get_config | ||
|
||
c = get_config() | ||
|
||
c.LanguageServerManager.virtual_documents_dir = os.path.join( | ||
jupyter_runtime_dir(), ".virtual_documents" | ||
) |