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

Support Jupyter notebooks #76

Open
gsganden opened this issue Oct 12, 2022 · 1 comment
Open

Support Jupyter notebooks #76

gsganden opened this issue Oct 12, 2022 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@gsganden
Copy link

gsganden commented Oct 12, 2022

Would it be feasible and desirable to extend ssort to support Jupyter notebooks? Jupyter supports running cells out of order, which makes it easy to have a notebook that won't run top to bottom. Using ssort to arrange the cells (and content within cells?) in an order that respects dependencies could be a helpful tool for resolving those issues.

@bwhmather
Copy link
Owner

I must confess that I have no idea how to go about it. In particular, I'm not certain what the workflow would look like, and basically whether it would be safe to run ssort offline on a notebook file or if it would need to be built in to jupyter somehow.

I do expect that sorting Jupyter notebooks would require a lot of the same dependency analysis that we already have in ssort so, if the workflow does make sense, I think it would be appropriate for us to support it in this repo. I would also not be opposed to increasing the python API surface area if necessary to support sorting directly in Jupyter.

I am personally only a very light user of jupyter, and this is therefore not something I can commit to lead on, but I would be very happy to review PRs or talk you through any parts of the code that might not be obvious. I believe that ssort is already used in https://github.com/joouha/euporie to sort code within cells, so that would probably be the first place to look.

Short answer: Desirable: in some form, absolutely, certainly, yes. Feasible: probably. When: due to constraints on my own time I am going to have mark this as Help Wanted.

@bwhmather bwhmather added enhancement New feature or request help wanted Extra attention is needed labels Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants