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,550 points
10,070 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,270 points
3,577 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,440 points
241 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,720 points
1,144 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,180 points
539 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 2,077 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,580 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,238 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,483 views