Information as of 20191124. I write so lightly that I die because I am sleepy. 20191227 Addendum It seems that there is a lot of demand for this article only
Up to startup confirmation and initial settings.
python install I'm using the py launcher, so I don't pass the path to python.
Environment creation. Then activate. The console is git-bash
$ py -m venv hoge
$ . hoge/scripts/activate
Update pip and install jupyter.
(hoge)$ pip install -U pip
(hoge)$ pip install jupyter
(hoge)$ jupyter notebook
I got a deadly error. The point is here.
raise NotImplementedError
Choose your favorite editor. You don't even have to do it from the console.
(hoge)$ cd lib/site-package/tornado/platform
(hoge)$ emacs asyncio.py
In the asyncio.py file, add the following when the package import is almost finished.
hoge/lib/site-package/tornado/acyncio.py
import sys
if sys.platform == 'win32':
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
(hoge)$ jupyter notebook
It looks like hoge / lib / site-package / tornado / platform
is the default folder.
(hoge)$ jupyter notebook --generate-config
>>> Writing default config to: ~\.jupyter\jupyter_notebook_config.py
Uncomment the following and pass any path.
~/.jupyter/jupyter_notebook_config.py
#c.NotebookApp.notebook_dir = ''
I tried printing properly. It's speculation, but it seems that root python is used by default.
Add the venv environment with ʻipython kernel install`.
(hoge)$ ipython kernel install --user --name=hoge
From the jupyter kernel menu Change kernel> hoge
Maybe you can use it. Let's feel free to use it.
Jupyter server Maybe I feel like setting up a server with jupyter or python
If you type tmux into git-bash and start the virtual environment and jupyter notebook from the tmux session, it will not be a problem as it is, so I corresponded there
This is really good. Almost copy. (Memory is ambiguous)
(hoge)$ jt -t onedork -fs 105 -tfs 11 -nfs 115 -cellw 88% -lineh 120 -T -N -f inconsolata
I was saved. I didn't know that the reference source would be notified if @ was added properly.
@ k-serenade Change the initial directory of Jupyter Notebook @Gattaca Using venv with jupyter notebook StackOverFlow : Jupyter Notebook with Python 3.8 - NotImplementedError
@kazukiii Your Jupyter is not good @ knakajima3027 Customize Jupyter Notebook theme @koikoi_jam About the font of jupyter-themes
Recommended Posts