I am trying to install a new kernel on a jupyter environment from bash script. In a dockerfile that uses jupyter/minimal-notebook as the parent image, I run a bash script that: generates a new virtual env: python -m venv new_kernel installs numpy and ipykernel new_kernel/bin/pip install ipykernel numpy registers the kernel: new_kernel/bin/python -m ipykernel install –name new_kernel –display-name “Python (new_kernel)”.
Tag: jupyter-notebook
how to mount a local volume for my docker?
i am newbie to the Linux and docker. I am using the below command to run the docker: where; /home/pyman/PEYMAN is my local directory and 21bbc6c8f7ed is the image ID. after running this command, the workspace root changes to root@0ce2ee24bac0:/workspace# then I type jupyter notebook and run it, and it provides two links which only the second link opens the
jupyter notebook can’t detect conda kernels only on boot
I’m trying to automatically start jupyter server on boot. (ec2, amazon linux) I got the jupyter server working and correctly loading all the conda kernels. and I tried to run jupyter on boot. (tried rc.local, systemd, crontab and all fails to load conda kernels and only loads basic python2 and python3 kernels) I’ve traced it down to the nb_conda_kernels not
View and edit Jupyter Notebook (ipynb) files in terminal [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations. Closed 12 months ago. Improve this question I have some jupyter notebooks (ipynb) on a server, which I
How to input password to a shell command ‘git push’ from a Jupyter Notebook?
I have the following code in a Jupyter Notebook’s cell: which will ask my password for Github but the cell keeps on running as I can’t find the way to input my password. For some reason, I want to push the code this way. I tried to follow the similar questions but nothing seems to be working in my case.
Run bash command from python and capture file object
in jupyter notebook I can run the following command and get a list of file objects that I can then open: I have tried the following: But I can only get a string object not file objects that I can then open and get data from. Answer Filenames are strings. That’s what you pass to open to get a file
Jupyterhub using sudo without root: can’t run sudospawner without pw
I’m struggling to fire up jupyterhub, running with limited sudo rights, without root privileges. If I understand correctly, this makes it possible to run notebook servers as real system users on a shared system without running the Hub itself as root. I followed the following steps, but for someone reason the following command keeps giving me the error that my
Running for loop terminal commands in Jupyter
I know how to run command line in Jupyter : using ! For example, run an image file 2.jpg on Python process.py Question is, how to process all files of a folder in iteration way (idx) in Jupyter cell, something like this: Thanks PS: I tried path , did not work: Answer A possible hackish solution could be to use