Convert Jupyter(.ipynb) to Python(.py) and Python(.py) to file.exe

Erdem YAZAN
2 min readNov 26, 2018

--

First of all, Install ipython libraries (You may not do this step if you have already installed it. )

“pip install ipython”

If you would like to learn What is the ipython? You can click this link..

“pip install nbconvert”

If you would like to learn What is the nbconvert? You can click this link..

After installing libraries, Convert the single file.

When we write this command, we open the command prompt where our file with python extension is located.

“ipython nbconvert — to script Single.ipynb”
Now, we can have .py file

After all the steps have ended, our file with .py extension has been created. Now we will convert our .py file to exe.

Open a cmd window in your Python folder (open a command window and use cd or while holding shift, right click it on Windows Explorer and choose ‘Open command windows here’). Then you can press the enter button.

Single is my folder name.
“pip install pyinstaller”

If you would like to learn What is the pyinstaller? You can click this link..

pyinstaller Single.py

After all the steps have ended, our file with dist extension has been created. Now you can have your .exe file.

First double click “dist” file
After the double click, you can see this file and again double click
So, you can see the “.exe” file.

Everything is ready :)

Hopefully, it benefits you..

--

--