But the new kernel will have the same name as your previous kernel (for me it was called Python 3). Now you'll see a new kernel if you open a Jupyter notebook and select Kernel -> Change kernel from the menu. Then run the following with replaced by a name of your choice (I chose tfkernel) and replace the first path (i.e., ~/.local/share/jupyter/kernels/pythonX) by the path generated in step 4: mv ~/.local/share/jupyter/kernels/pythonX ~/.ipython/kernels/ Run the following: mkdir -p ~/.ipython/kernels The result for me was Installed kernelspec python3 in /Users/charliebrummitt/Library/Jupyter/kernels/python3 First run ipython kernelspec install-self -user I'll repeat them here with a bit more information added. Now follow the instructions in the tutorial linked above. Now that we are in the tensorflow environment, we want to install ipython and jupyter in this environment: Run conda install ipython You should now see (tensorflow) at the beginning of the prompt. After that, here is how I got tensorflow to work in a Jupyter notebook: I am using Anaconda, and I installed a new environment tensorflow usingthese instructions at. I had the same problem and solved it using the tutorial Using a virtualenv in an IPython notebook.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |