vscodeJupyter icon indicating copy to clipboard operation
vscodeJupyter copied to clipboard

Opening a ipynb file in vscode

Open nscsekhar opened this issue 7 years ago • 10 comments

Environment data

VS Code version:1.11.1 Jupyter Extension version:4.2.1 OS and version:OSX Sierra

Logs

Output from Jupyter output panel None

Output from Console window (Help->Developer Tools menu) None

Actual behavior

When I try to open a ipynb file, it opens as a raw json like data.

Expected behavior

I would like to see it as cells and text.

I feel the web interface for ipynb is not great for step wise edit and debugging. I think vscode jupyter is really great extension but it works only on cells (atleast the examples I have seen). Is there a way to open existing ipynb files in vscode in a way to run and debug?

Thanks..

Steps to reproduce:

Open any ipynb file using vscode after installing the jupyter extension.

nscsekhar avatar Jun 03 '17 05:06 nscsekhar

Ipynb files are not supported by this extension. There are no immediate plans to support this either.

DonJayamanne avatar Jun 04 '17 02:06 DonJayamanne

Could this be reopened as a feature request? It is a really great feature.

yzhang-gh avatar Sep 28 '17 02:09 yzhang-gh

Yeah, with .ipynb support, you can share your notebook with others more easily. At least, please support convertion bettween .ipynb and .py .

eromoe avatar Oct 11 '17 04:10 eromoe

A 2-way conversion between .ipynb and .py (suitable for this extension) would be very useful. Please implement this enhancement, if possible.

sajaysurya avatar Nov 04 '17 12:11 sajaysurya

It should be relatively easy to accomplish using nbconvert and nbformat.

jarandaf avatar Nov 20 '17 09:11 jarandaf

I was just looking for this and ran across this issue, so let me chime in with support.

@jarandaf , maybe submit a PR? I'm new to notebooks so I'd be digging in the dark.

tigerhawkvok avatar Feb 13 '18 00:02 tigerhawkvok

@tigerhawkvok Any update on this issue ?

harrypotter0 avatar Jun 20 '18 10:06 harrypotter0

Yes please! It'd be very handy!

kabukunz avatar Jul 02 '18 15:07 kabukunz

I plan to work on a script exporter/importer for Jupyter notebooks, compatible with the Jupyter extension for VS code, at https://github.com/mwouts/jupytext/issues/59. Please review the specifications there if you are interested. Thanks.

mwouts avatar Sep 06 '18 20:09 mwouts

Hello everyone. I just published a new RC for Jupytext. Jupytext can now convert double percent scripts to Jupyter notebooks, and back. Would you like to test and provide feedback?

Install the rc with

pip install jupytext==0.7.0rc0

Corresponding documentation (how to use the command line interface, or how to setup Jupyter to read or save notebooks to double percent files) is the v0.7.0 branch.

Feedback is welcome!

mwouts avatar Sep 22 '18 08:09 mwouts