Giter Club home page Giter Club logo

dsc-0-01-07-working-with-lessons-on-learn-lab-online-ds-sp-000's Introduction

Working with Lessons on Learn - Lab

Introduction

Now that we have had an introduction to the command line, have seen how to clone GitHub repos to our local machine (our computer), and have seen some common Jupyter Notebook operations, it's time to put our skills to the test! Follow the instructions below to pass the tests for this lab. If you're unfamiliar with the concept of variables, don't worry. Just follow along with the instructions - we'll talk about variables and data types much more in the next few lessons!

Objectives

You will be able to:

  • Make changes to a jupyter notebook and push it up to GitHub
  • Perform basic computations in a Jupyter Notebook and store them in a variable

Instructions

Assign the below variable number to the number 27 by replacing None with 27.

number = None
number

Next, like the above, reassign the flatiron_mantra variable with the string "Learn. Love. Code.".

flatiron_mantra = None
flatiron_mantra

Finally, in your command line type python -m pytest -x to see if your tests are passing. If you would like to see a more detailed test output, type python -m pytest -vv and it will show each test line by line with its name and whether you've passed or failed it.

Once all your tests are passed, type git add ., then git commit -m "finished lab and all tests are passing", and finally git push.

Making A Pull Request

The last step, in order to pass a lab, is to make a pull request on GitHub. It's relatively straightforward and will become more natural and easy as you go through the course. Just follow the steps below:

1. Go back to the GitHub repository you forked and then cloned. Remember we clicked on the GitHub icon at the top of our learn lesson, then clicked fork, which then brings us to our forked repository? Once we are at the forked repo, click on the New Pull Request button. (You can optionally click the green "Compare & pull request" button.

new_pull_request

2. Then we will be directed to a new page where we will click a green Create pull request button.

create_pull_request

3. Which then will direct us to the final page, where we will finally commit our pull request by clicking "Create pull request" one more time. Feel free to update or add to your pull request message, but you can simply skip that step and submit the pull request.

finish_pull_request

And that's it! You may need to refresh your learn.co lesson page, but your light should be green and allow you to move on to the next lesson as long as you have passed the tests (which we made sure to do before creating our pull request)! (Note: For now, you will have to click the "I'm done" button as we rework learn to automatically validate our Python tests.)

Summary

Great work! We are well on our way to mastering Jupyter notebooks! We practiced reassigning variables, running cells, checking our outputs, and running our tests to get them to pass.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.