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
• 10,530 points
8,761 views

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
3,178 views
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, 2020 in Python by Roshni
• 10,420 points
213 views
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, 2020 in Python by Niroj
• 82,560 points
905 views
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, 2020 in Python by MD
• 95,060 points
391 views
0 votes
2 answers
+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,838 views
0 votes
0 answers
+4 votes
6 answers

Lowercase in Python

You can simply the built-in function in ...READ MORE

answered Apr 11, 2018 in Python by hemant
• 5,810 points
1,417 views
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
1,093 views
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
1,381 views