Using PyCharm 2017.1 with Jupyter server

Answered

Hi all,

In running PyCharm 2017.1 on a Jupyter notebook, and I have 3 questions:

1) I'm able to run a local notebook on the server with no problems, but the notebook does not appear in my user folder on the server. Does it get saved anywhere on the server? 

2) Is it possible to run a notebook that is on my user folder on the server, or should I first downloading it?

3) How can I tell PyCharm that the notebook should be ran using Python 2? The server default uses python 3, and I run all my notebooks on python 2 by manually selecting the kernel on the Jupyter UI

Thanks

 

Eduardo

0
2 comments

Hi, Eduardo!
If I understand you correctly, you've configured remote notebook and run notebook file from PyCharm. 

1) If you hadn't configured remote interpreter and deployment configuration, files don't appear on a server and they're saved only locally. We have a blog post dedicated to remote development with instruction how to configure remote interpreters and development configuration.

2) No, it is not possible, you should download it.

3) Unfortunately, now you cannot choose interpreter to run notebook with. Here is an issue for this problem.

 

Thank you!

Valentina

1
Avatar
Permanently deleted user

Thanks! I found a workaround for #3, using the magics %%python2 I can run a cell with python 2 code

0

Please sign in to leave a comment.