Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there any way to convert .nb files to .wln files? #70

Open
LoganJFisher opened this issue Jan 6, 2024 · 3 comments
Open

Is there any way to convert .nb files to .wln files? #70

LoganJFisher opened this issue Jan 6, 2024 · 3 comments
Labels
already planned enhancement New feature or request

Comments

@LoganJFisher
Copy link

I tried starting a .nb file, but it wouldn't run. A .wln file with the same name was automatically created, but it doesn't seem to actually work. I'm not sure if I perhaps did something wrong.

@JerryI
Copy link
Owner

JerryI commented Jan 7, 2024

This is correct behaviour. The feature of an automatic conversion is still in development, we just have started it recently.

@JerryI JerryI added enhancement New feature or request already planned labels Jan 7, 2024
@userrand
Copy link
Contributor

userrand commented Jan 8, 2024

This is correct behaviour. The feature of an automatic conversion is still in development, we just have started it recently.

I am guessing that would be similar to the question of converting mathematica notebooks to jupyter like here (answers did not work for me) https://mathematica.stackexchange.com/questions/200693/how-to-export-a-notebook-to-jupyter ? There is a github repository that, like the answers in the previous link, uses mathematica to convert a .nb file to a jupyter file but I am not sure anymore whether or not I tried it (and if I did it not work) https://github.com/oovm/JupyterConvert/blob/master/Kernel/Notebook2Jupyter.m

I only managed to make something that kind of works starting with the mathematica frontend (I think my solution was similar to the first answer there, maybe basically the same ).

Even using the wolfram frontend it still did not completely work for all inputs . I think there was quite a range of possible scenarios to consider (2d inputs, comments, heading cells, maybe code cells, deeply nested grouped cells).

If you see a way to get a converter to extract all of the scenarios of inputs* in a reasonable amount of time, I can maybe offer some help in making a .nb to jupyter converter. Then from there a converter to .wln might be fairly easy.

*outputs might be too hard for me with considerations like network graphs,images,dynamic objects

@LoganJFisher
Copy link
Author

I'd like to request that once a .nb to .wln converter is made, if the process is reversible then I'd value the ability to save-as to .nb format to make it easier to share a file with someone who is using Mathematica.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
already planned enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants