Comprehensive install script
See original GitHub issueAs I’m experiencing troubles setting up the right dev environment on WSL, I thought it useful to solve it in an issue here. I’m on WSL x64 (Ubuntu 16.04) using Miniconda3.
I went through the jupyterlab contributing guide and the instructions on this repo and did the following in a folder /mnt/d/jlab/:
conda create -n monaco
source activate monaco
conda install -c conda-forge nodejs notebook nb_conda_kernels
git clone https://github.com/<your-github-username>/jupyterlab.git
cd jupyterlab
pip install -e .
jlpm install
jlpm run build # Build the dev mode assets (optional)
jlpm run build:core # Build the core mode assets (optional)
jupyter lab build # Build the app dir assets (optional)
cd ..
git clone https://github.com/jupyterlab/jupyterlab-monaco.git
cd jupyterlab-monaco
yarn install
yarn run build
jupyter labextension link .
That final command sometimes ends up in an infinite loop, supplying dev mode argument helps it to pass. I tried experimenting with rebuilding after I made the changes in that config.json you mentioned somewhere, but I can’t get it to work.
I can start JupyterLab with the default command, but the text editor is still codemirror.
Would you mind helping out with a comprehensive bash file that should work in principle? Did I forget anything or got something wrong?
I guess it’s just “first-timer” issues.
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (3 by maintainers)
Top GitHub Comments
You should get a Monaco editor when you open a non-notebook file. At least the first time you open it it should work. The current implementation is a very blunt one. You can recognize it by the minimap on the right hand side.
Any luck?
(In fact, if you’re just using the extension instead of developing it, you could do
jupyter labextension install .
instead of linking it)