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

Local-build-instructions #2922

Merged
merged 24 commits into from
Mar 10, 2023
Merged

Local-build-instructions #2922

merged 24 commits into from
Mar 10, 2023

Conversation

arronlacey
Copy link
Collaborator

@arronlacey arronlacey commented Dec 23, 2022

Summary

Adds some documentation to build the Turing Way Book locally. Original instructions proposed via the Infrastructure group and written by @sgibson91, edited by @arronlacey

List of changes proposed in this PR (pull-request)

  • adds instructions to build the book locally with jupyter-book
  • gives rationale for using miniconda and envs

What should a reviewer concentrate their feedback on?

  • Everything looks ok?
  • Should we add anything else?

Acknowledging contributors

@netlify
Copy link

netlify bot commented Dec 23, 2022

Deploy Preview for the-turing-way ready!

Name Link
🔨 Latest commit ce68087
🔍 Latest deploy log https://app.netlify.com/sites/the-turing-way/deploys/640b210e096227000882bcee
😎 Deploy Preview https://deploy-preview-2922--the-turing-way.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link
Member

@sgibson91 sgibson91 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this @arronlacey! I have a few suggestions to clean up the language, and I think the second section needs to be more narrative style rather than bullet points.

book/website/community-handbook/local-build.md Outdated Show resolved Hide resolved
book/website/community-handbook/local-build.md Outdated Show resolved Hide resolved

## Step-by-step guide
1. Install miniconda https://conda.io/projects/conda/en/latest/user-guide/install/index.html#regular-installation
2. Run `conda init` in your terminal. You should see `(base)` in your prompt indicating that conda was successfully installed and you are now in it's base environment.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We maybe want to be explicit about "open your terminal app and run the conda init command"

Copy link
Collaborator

@sandygudie sandygudie Mar 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, i agree with this.
And to add to it, my cmd did not recognize the conda init, i had to use the Anaconda prompt(miniconda3) terminal to run it. I will suggest adding a clue to that.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Anaconda and miniconda are different installations. Are you sure you installed miniconda, as per the instructions? Did your machine already have anaconda installed before you started?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, i followed the instruction for installation https://conda.io/projects/conda/en/latest/user-guide/install/index.html#regular-installation, I selected for windows.
No i never had the Anaconda on my machine.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huh, ok. This is probably a "things are different on Windows" scenario, so we should have a nested bullet point here saying "on windows, do this instead"

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi both - hopefully I've addressed the comments in this conversation in commit c3c7dda . Namely adding more narrative and the point about needing Anaconda prompt on Windows

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure you pushed the narrative changes? I'm examining commit c3c7dda (#2922) but it looks pretty similar to me? I'm imagining that we get rid of the bullet points under "Why did we recommend using (mini)conda?"

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah I was looking at the wrong section - I added some very light touch edits on the build instructions in c3c7dda. Ok no problem I'll have a crack at the miniconda section.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2ca45fa is hopefully more what you had in mind, and the title is now in line with the toc

book/website/community-handbook/local-build.md Outdated Show resolved Hide resolved
book/website/community-handbook/local-build.md Outdated Show resolved Hide resolved
book/website/community-handbook/local-build.md Outdated Show resolved Hide resolved
book/website/community-handbook/local-build.md Outdated Show resolved Hide resolved
book/website/community-handbook/local-build.md Outdated Show resolved Hide resolved
book/website/community-handbook/local-build.md Outdated Show resolved Hide resolved
@aleesteele
Copy link
Member

@sandygudie and @RealRichi3 - maybe this would be of interest for you all? We'd love to see if there instructions make sense for you all to build the book currently on your local machines. (Tagging @BatoolMM for awareness).

@RealRichi3
Copy link
Collaborator

@sandygudie and @RealRichi3 - maybe this would be of interest for you all? We'd love to see if there instructions make sense for you all to build the book currently on your local machines. (Tagging @BatoolMM for awareness).

Alright @aleesteele, we'll look into it and make the necessary changes, thanks

@RealRichi3
Copy link
Collaborator

RealRichi3 commented Feb 23, 2023

@sandygudie and @RealRichi3 - maybe this would be of interest for you all? We'd love to see if there instructions make sense for you all to build the book currently on your local machines. (Tagging @BatoolMM for awareness).

@aleesteele i went through the guide and it looks really good, although i have an issue.

Under the section Why did we recommend using miniconda, it talked about the importance of virtual environments, but the guide doesn't show how to setup the virtual environment for the local build.
Does this mean miniconda handles the creation of virtual environment?

@RealRichi3
Copy link
Collaborator

RealRichi3 commented Feb 23, 2023

Another question @aleesteele, should we go ahead and add the changes suggested by @sgibson91 ?

@sgibson91
Copy link
Member

sgibson91 commented Feb 23, 2023

Does this mean miniconda handles the creation of virtual environment?

Yes, the step conda create creates a virtual environment and conda activate makes sure all future commands are run inside of it.

@RealRichi3
Copy link
Collaborator

Does this mean miniconda handles the creation of virtual environment?

Yes, the step conda create creates a virtual environment and conda activate makes sure all future commands are run inside of it.

Oh, i understand better now, thanks @sgibson91

@RealRichi3
Copy link
Collaborator

image

@aleesteele, the guide is okay, i was able to setup the project build locally

@samkitk
Copy link

samkitk commented Feb 26, 2023

The instructions work for me as well and were super helpful :)

Copy link
Collaborator

@sandygudie sandygudie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Welldone @arronlacey

I was able to build the Jupterbook successfully, I also dropped a couple of comments.

book/website/community-handbook/local-build.md Outdated Show resolved Hide resolved
book/website/community-handbook/local-build.md Outdated Show resolved Hide resolved
arronlacey and others added 6 commits March 7, 2023 10:01
Co-authored-by: Sarah Gibson <44771837+sgibson91@users.noreply.github.com>
Co-authored-by: Sarah Gibson <44771837+sgibson91@users.noreply.github.com>
Co-authored-by: Sarah Gibson <44771837+sgibson91@users.noreply.github.com>
Co-authored-by: Sarah Gibson <44771837+sgibson91@users.noreply.github.com>
Co-authored-by: Sarah Gibson <44771837+sgibson91@users.noreply.github.com>
Co-authored-by: Sarah Gibson <44771837+sgibson91@users.noreply.github.com>
arronlacey and others added 3 commits March 7, 2023 10:03
Co-authored-by: Sarah Gibson <44771837+sgibson91@users.noreply.github.com>
Co-authored-by: Sarah Gibson <44771837+sgibson91@users.noreply.github.com>
Co-authored-by: Sarah Gibson <44771837+sgibson91@users.noreply.github.com>
Copy link
Member

@aleesteele aleesteele left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Co-authored-by: Goodnews Sandy <54219127+sandygudie@users.noreply.github.com>
arronlacey and others added 2 commits March 9, 2023 14:45
Co-authored-by: Goodnews Sandy <54219127+sandygudie@users.noreply.github.com>
Copy link
Member

@sgibson91 sgibson91 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great to me now. Thank you @arronlacey!

book/website/community-handbook/local-build.md Outdated Show resolved Hide resolved
Co-authored-by: Sarah Gibson <44771837+sgibson91@users.noreply.github.com>
Co-authored-by: Sarah Gibson <44771837+sgibson91@users.noreply.github.com>
@arronlacey
Copy link
Collaborator Author

Thank you @sgibson91, @sandygudie, @RealRichi3 @aleesteele @samkitk for working together on this.

@arronlacey arronlacey merged commit c85a53a into main Mar 10, 2023
@arronlacey arronlacey deleted the local-build-instructions branch March 10, 2023 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants