Group Abstract Group Abstract

Message Boards Message Boards

What is the best way to refactor code within a notebook?

Posted 4 years ago
POSTED BY: Andrew Burnett
5 Replies
Posted 4 years ago

Thanks Robert. That's very helpful. I will do some experiments with importing the code into a notebook. But, on the basis of your thoughts, it sounds as though the process of editing the code in IntelliJ is really just a one-way process. I.e. once I have decided that my programming task demands a more capable editor, I won't be going to back to Mathematica, except to run the code.

POSTED BY: Andrew Burnett
POSTED BY: Robert Nachbar
Posted 4 years ago

Thank you to both of you. Michael, the plugin looks superb. It is exactly what I was looking for. I am not a Jetbrains user, but I think I need to become one immediately.

Rohit that is a very useful one-liner. Is there something similar that would allow me to go the other way? I.e. develop in IntelliJ, and then parse the file with Mathematica, so that it becomes a Notebook again? It isn't a problem if not - I would Mathematica would simply bring it all in as a single cell. However, for debugging purposes, it could be very useful to be able to single step through the code, and Notebooks are great for that.

Cheers Andy

POSTED BY: Andrew Burnett
Posted 4 years ago
POSTED BY: Rohit Namjoshi
POSTED BY: Michael Rogers
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard