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

Create a Jupyter Notebook out of the current code.... #22

Closed
RobertLRead opened this issue Nov 29, 2022 · 4 comments
Closed

Create a Jupyter Notebook out of the current code.... #22

RobertLRead opened this issue Nov 29, 2022 · 4 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@RobertLRead
Copy link
Collaborator

Our goal here is to allow the ease that Jupyter Notebook provides for outsiders to run our code, as well as offering some graphical capability in the Notebook.

We may host this in CoCalc, but would like to make a "plain vanilla" Jupyter Notebook that can be run in many containers.

This issue is confined to the act of demonstrating the run of a "supply problem" as documented in the film in the "doc" directory in a Notebook. No doubt there will be many enhancements, but this issue is just to get us started here.

It is unclear to me if this code can be kept in the repo with a single source of truth and be used in the notebook; but figuring that out is not part of this issue.

@RobertLRead RobertLRead added the enhancement New feature or request label Nov 29, 2022
@lynnpepin
Copy link
Contributor

lynnpepin commented Dec 1, 2022

I've recently pushed new code to the jupyterification branch, making a notebook matching pd_sc.py. This makes sense, since pd_sc.py is primarily a "demo" script. Changes so far:

  1. Added a notebooks folder
  2. Added notebooks/pd_sc.ipynb, adapting the code from src/pd_sc.py (with some changes).
  3. Modified code under src to fix imports.
  4. Added an import_magic.ipynb notebook to explain a few dense lines that we use to import code from src.

It'd be good for someone with more expertise to modify the Markdown / add Markdown in the pd_sc.ipynb notebook! Other than that, the jupyterification branch should be complete.

@Jbutler-helpful Jbutler-helpful moved this to In Progress in Project-Data-Pilot Dec 6, 2022
@Jbutler-helpful Jbutler-helpful moved this from In Progress to Backlog in Project-Data-Pilot Feb 28, 2023
@Jbutler-helpful Jbutler-helpful assigned jkaur18 and tjgopal and unassigned jkaur18 Nov 17, 2023
@Jbutler-helpful Jbutler-helpful added the good first issue Good for newcomers label Nov 17, 2023
@Jbutler-helpful
Copy link
Collaborator

We had a little luck using google colab in some testing
we also took a look a github codespaces https://docs.github.com/en/codespaces

@Jbutler-helpful
Copy link
Collaborator

This is mostly done in tim's branch https://github.com/timr11/project-data-visualizations or captured in #55

@github-project-automation github-project-automation bot moved this from Backlog to Done in Project-Data-Pilot Dec 19, 2023
@lynnpepin
Copy link
Contributor

Hi, sorry, seeing this just now.

For local Jupyter environments, I think the best thing to do would be to install Jupyter Lab using Pip or Conda. This is the best way to set up a Jupyter environment.

There's also the standalone Jupyterlab Desktop, which combines the server application and browser client into one app. For people who are terminal-only, Jupyter Console provides an interactive TUI interface to work with notebooks.

VSCode and Pycharm Professional also have good notebook support. If you're already using either of these IDEs, then you can run your notebooks directly in it.

I would advise against relying on GitHub Codespaces or Google Colab, unless there is funding to move to paid tiers. The free tiers come with terms and conditions which are always shifting, and I don't think these can exist as free products indefinitely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
Development

No branches or pull requests

5 participants