prady00
prady00

Reputation: 751

How can I create an executable out of jupyter notebook code?

My use-case is - To visualize the peer feedback of staff to find interesting facts and inferences.

Ex - reading data from a .csv file and creating visualization on the feedback like a word cloud, bar charts, spider charts, etc.

The expected end-user experience is -

a) User clicks on the executable

b) User is asked to select a file

c) User sees all the visualizations

Also, in the future, I want to give the option for users to apply filters and search for categorical variables & staff nos.

ps: I want to keep tools like power bi, MicroStrategy, etc out of scope for this PoC.

Upvotes: 2

Views: 2025

Answers (1)

joubs
joubs

Reputation: 123

There does not seem to be a direct way to convert a Jupyter notebook to an executable file.

However the standard way to tackle your problem seems to be a two-step process:

  1. convert the notebook into a regular Python script. You can download your notebook as a Python script from the Jupyter GUI or use nbconvert, this thread is related.
  2. turn the script into an executable. There are several tools available for that matter, such as Cx_freeze or Pyinstaller.

Upvotes: 2

Related Questions