The computer has Anaconda Python installed and then downloaded the spark2.1.0. Because the version is too new, some content on the web and in the book is no longer applicable. For example, on how to use Ipython and Jupyter, the tutorial gives you the option to open spark with the following statement into Ipython or Ipython Notebook:Ipython=1./bin/pysparkipython_opts= "N
python3.6 install Jupyter, can't open notebook, prompt modulenotfounderror:no module named ' Markupsafe._compat ', there is coding problem, the solution is to download a git base, Once installed, git base unloads the previously installed Markupsafe module, pip uninstall Markupsafe, and then re-installs the module in Git base, which is the same command as under Wi
python IDLE cannot connect and Jupyter notebook cannot open the browser
Problem Description
WIN10 system due to firewall mechanism, installing Python and Anaconda will cause the following error:1. After installing Python, an error occurred while opening IDLE, unable to connect to the Python interpreter. Error message isIDLE ' s subprocess didn ' t make connecti
Jupyter notebook is very convenient, want to build one on the server, but not access.
(a) The first is the installation of Jupyter notebook,
Pip Install Jupyter
If the PIP installation is not correct and the SQLite library is missing, install
sudo apt-get install Libsql
installation 1.1 new version Anaconda with Jupy Ter Currently, the latest version of the Anaconda is brought Jupyter notebook, do not need to be installed separately1.2 old version Anacodna need to install Jupyter
Jupyter Notebook installation of the official website
Prereq
Windows environment, under the premise of successful configuration and installation of Python+pycharm.
The steps to install Jupyter using PIP are as follows:
1.Windows Mount Pip (small pip for quick install of Jupyter module)
Reference article: https://jingyan.baidu.com/article/ff42efa9d630e5c19e220207.htmlAttentionIn Windows terminal, to open
Notebook Documentation
Jupyter/ipython Notebook Quick Start Guide
Old IPython Notebook homepage
I. Installation of Jupyter notebook 1.1 new version Anaconda comes with
Jupyter notebook, do not need to be installed separately1.2 old version Anacodna need to install Jupyter
Jupyter Notebook installation of the official website
Prerequisites for installing Jupyter
http://blog.csdn.net/tina_ttl/article/details/51031113
Jupyter notebook) Formerly known as Ipython Notebook, when learning, you can find the two tutorials
Jupyter Project Documentation
Jupyter Notebook Docu
, the main interface of Jupyter will be started in the folder where you open notebook, as shown below:
To create a new notebook, clickNewSelect the notebook type you want to start.
Here, we run a Python notebook because I only h
I. Installation of Jupyter notebook 1.1 new version Anaconda Jupyter Currently, the latest version of the Anaconda is a jupyter notebook, no need to install separately1.2 old version Anacodna need to install Jupyter
Since the Jupyter notebook I used earlier is based on the python2.7 version, just install the python3.6 based kernel on this basis.
My environment is as follows:
Windows 10, 64-bit systems
Installed based on python2.7 version of Anaconda
Installed the PY27 and PY36 virtual environment in Anaconda
The kernel of existing Jupyter
;>>
Anaconda The default installation path is/user/zhangsan/anconda3/, and of course you can specify the installation directory yourself, and enter it here.
Open a new terminal after Setup completes
#jupyter Notebookwill start and automatically open http://localhost:8888/tree# in the browser
[I 17:37:52.287 Notebookapp] Serving notebooks from local director
install matplotlib
6. Create the Jupyter Default Configuration File
root@787c084a44e4:~# jupyter notebook --generate-config
7. Generate a SHA1-Encrypted Key and save it, for example, 'sha1: xxxxxx'
root@787c084a44e4:~# ipython
Input
from notebook.auth import passwd passwd()
8. Set the key and modify the configuration file.
root@787c084a44e4:~# vim .
pycharm Jupyter
Multi-Environment Jupyter configuration 1
Activate TensorFlow
Conda install notebook ipykernel ipthon kernel install--user
Pycharm Switch to TensorFlow working environment, new *IPNB file, run. jupyter Drawing Black font display in Pycharm
Using the Matplotlib plot figure tick and the text color is
follows:
Activate the virtual environment of py27 and enter the following command:
Python-m ipykernel install -- user
Start jupyter notebook to view the information. You can see that the kernel of python2 has been installed.
Tips for Quick Start of jupyter notebook
When you start
installation of the document Linux version 3.xOfficial list of installed documents, including 3.x2.x et cetera 1. Download the latest version of Python (3.5.1 link) (download based on machine bits (64 bits)
2. Install PythonA few steps are not the default (note)2.1 Double click the install package to add to path2.2 Default Next2.3 Check all users to useWait for the installation to complete.2.4 Check to see if Pip and Setuptool have been installed.CMD Enter python-m pip list3. Quick Install
in
[2]: passwd ()
Enter password:
Verify password:
out[2]: ' SHA1 : 5311cd8b9da9:70dd3321fccb5b5d77e66080a5d3d943ab9752b4 '
Step Fourth: Modify the configuration file generated in the first step, modify the following addresses, and remove the # before the line to take effectvi/root/.jupyter/jupyter_notebook_config.py orVI ~/.jupyter/jupyter_notebook_config.py
c.notebookapp.ip= ' * '
c.notebookapp.passwo
lantern first.
Use and configuration of jupyter notebook
Enter jupyter notebook in Ubuntu.
Jupyter notebook -- generate-config can generate the default configuration file jupyter_notebook_config.py
Default Address Configuration
M
Jupyter notebook simultaneous use of Python2 and Python3If the default use of Python3 can be used to activate the PY27 virtual environment, Python27 Python.exe renamed to Python2.exe, environment variables are added, enter the command:python2-m ipykernel Install--userStart Jupyter notebook To see, then you can see, Pyt
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.