modified: n.fq
[GalaxyCodeBases.git] / etc / Server / myjupyterlab.sh
blobd61276f8af7ac96a9bc4273407a6e56fe1fd2905
1 #!/bin/sh
3 #micromamba create -n nb
4 #micromamba install -n nb -c conda-forge jupyterlab ipywidgets python[version='>=3.12'] git[version='>=2.44'] conda #nodejs "libuv[version='>=1.48']"
5 ######micromamba run -n nb pip3 wheel --no-input --use-pep517 --no-deps -w ./pywhls git+https://github.com/Anaconda-Platform/nb_conda_kernels.git
6 #micromamba run -n nb pip3 install --no-input --use-pep517 git+https://github.com/Anaconda-Platform/nb_conda_kernels.git
8 JUPYTERCFGPATH=`micromamba run -n nb jupyter --config-dir`
9 PASSWORD='Salus107'
10 HASHEDPW=`printf "from jupyter_server.auth import passwd\nprint(passwd('${PASSWORD}'))"|micromamba run -n nb python3`
12 printf "
13 c = get_config() #noqa
14 c.ServerApp.allow_remote_access = True
15 c.ServerApp.ip = '*'
16 c.ServerApp.open_browser = False
17 c.ServerApp.port = 10000
18 c.PasswordIdentityProvider.hashed_password = '${HASHEDPW}'
19 " > ${JUPYTERCFGPATH}/jupyter_server_config.py
21 printf '{
22 "CondaKernelSpecManager": {
23 "kernelspec_path": "--user"
26 ' > ${JUPYTERCFGPATH}/jupyter_server_config.json
28 printf '#!/bin/sh\nPYDEVD_DISABLE_FILE_VALIDATION=1 micromamba run -n nb python3 -Xfrozen_modules=off -m jupyterlab_server\n' > ${MAMBA_ROOT_PREFIX}/envs/nb/bin/nb
29 chmod +x ${MAMBA_ROOT_PREFIX}/envs/nb/bin/nb
30 ls -l ${MAMBA_ROOT_PREFIX}/envs/nb/bin/nb
32 exit
34 micromamba install -c conda-forge ipykernel ipywidgets r-irkernel -n salus
35 micromamba run -n nb python -m nb_conda_kernels list
37 micromamba run -n salus jupyter kernelspec list
38 micromamba run -n salus python -m ipykernel install --user --name salus --display-name "Python (salus)"
39 micromamba run -n salusg python -m ipykernel install --user --name salusg --display-name "Python (salusG)"
40 # IRkernel::installspec(name = 'atacR', displayname = 'atacR')
41 Rscript -e "IRkernel::installspec(name = 'atacR2', displayname = 'atacR2')"
43 micromamba run -n nb jupyter kernelspec list