0
import ipynb 

As I m doing on data visualization programme in ipynb, how to import .ipynb to .py modules and how to present data visual charts in .py modules

4
  • What do you mean by combine? Do you want your .ipynb code in .py or something else? Commented Mar 26, 2018 at 10:32
  • ya i want to use .ipynb code in .py. Commented Mar 26, 2018 at 10:33
  • If you are using jupyter notebook, then it's pretty easy. Follow this link stackoverflow.com/questions/37797709/…. Commented Mar 26, 2018 at 10:41
  • I want to data visualize in .py as a image (jpg) Commented Mar 26, 2018 at 11:14

1 Answer 1

2

You can convert your notebook with this command

ipython nbconvert --to python namefile.ipynb

You might have to install mistune through pip for exmaple

If you want to import the code from your notebook to a .py file, you might want to check this out http://nbviewer.jupyter.org/github/jupyter/notebook/blob/master/docs/source/examples/Notebook/Importing%20Notebooks.ipynb

Hope this helps

Sign up to request clarification or add additional context in comments.

2 Comments

I want to data visualize in .py also
@VEERESHNB the data visualization is an other problem, you should create a new question

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.