How to convert .ipynb files into .py?

0 votes
I have an ipynb file that I'm trying to run on pyCharm, but it is not working. Is there a way I can convert it into .py?
Aug 7, 2019 in Python by Sophie may
• 9,940 points

1 answer to this question.

0 votes

You can use this command to convert ipynb into py files:

ipython nbconvert --to script "file_name.ipynb"

answered Aug 7, 2019 by hansika
where do i write this ,if  in py script then it show-------,sintex error at nbconvert

Hello @ sujay singh,

Looks like you are trying to run this in the python shell so exit from the shell, and run it from the command line instead.

Hope it work!!

Thank you!!

Related Questions In Python

0 votes
1 answer

How to convert string into epoch time?

you are passing the parsed datetime object to ...READ MORE

answered Sep 21, 2018 in Python by SDeb
• 13,250 points
0 votes
1 answer

How to convert each list item into string in a column of data frame. ?

Hey, To split a string you can use ...READ MORE

answered Feb 5 in Python by Roshni
• 1,990 points
0 votes
1 answer

How to convert a DictProxy object into JSON serializable dict?

Hello, Rather than using a private DictProxy method like _getvalue(), I'd ...READ MORE

answered Apr 15 in Python by Niroj
• 45,800 points
0 votes
1 answer

How to convert one list into generator?

Hi@akhtar, Say, you have one list A. Now convert ...READ MORE

answered Apr 23 in Python by MD
• 43,440 points
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 1,214 views
0 votes
0 answers
+4 votes
6 answers
0 votes
1 answer

how to convert date field into UTC format (2019-10-29T19:20:30.45Z)

Hey, I think this should do what ...READ MORE

answered Oct 29, 2019 in Python by Niharika
0 votes
1 answer

How to convert string in Pandas Series to lower case?

Suppose you have the series stored in ...READ MORE

answered May 13, 2019 in Python by Raj