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..

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Erdem YAZAN
Erdem YAZAN

Written by Erdem YAZAN

Senior Business Intelligence Expert @TEI

Responses (2)

Write a response