njpipeorgan / wolfram-language-notebook

Notebook support for Wolfram Language in VS Code
Apache License 2.0
162 stars 12 forks source link

import standard Mathematica notebook #5

Open sunt05 opened 2 years ago

sunt05 commented 2 years ago

This is indeed brilliant work!

Just curious about if there's any plan to add the feature for importing the standard Mathematica notebook (i.e. .nb files) into the vs code environment. I think that would be a big step to enhance WL adoption.

njpipeorgan commented 2 years ago

Thanks! I do have this plan of importing .nb notebooks, but the complexity of .nb notebooks will be a problem--here are a few examples:

To what level do you think the importing feature will be usable?

sunt05 commented 2 years ago

My intention for this feature is simply to ease the access of my Mathematica code in .nb files, which are mostly written with cells of different default styles including header, text, code and in/output.

Given the popularity of jupyter notebooks (i.e. .ipynb), I think equivalent functionality as in .ipynb should be enough for the vs code environment: it's not necessary to achieve full compatibility between .nb and .wlnb/.ipynb; otherwise, folks can use Mathematica instead.

While for your examples/concerns above, I fully understand the underlying difficulties; but I'm wondering if this project would be useful? https://github.com/oovm/JupyterConvert Potentially, the JupyterConvert utility may serve as a connector between .nb and .wlnb (i.e. .nb-->ipynb-->.wlnb)?

njpipeorgan commented 2 years ago

Sounds great, I'll check out JupyterConvert.