Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

License

NotificationsYou must be signed in to change notification settings

learn-co-curriculum/dsc-running-jupyter-locally-lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

Objectives

You will be able to:

  • Use basic commands to navigate the command line
  • Use bash commands to create new files and folders
  • Usegit clone to clone a repository
  • Perform cell operations within Jupyter Notebooks

Setup

Remember from the last lesson, you need to:

  1. Click on the "GitHub" logo in the top right of the Canvas Assignment (go back to the previous page if you already loaded the Lab in SaturnCloud!)
  2. Fork the repository on GitHub so you have your own copy there
  3. Copy the URL of your repository
  4. Open a terminal window (terminal on a Mac, Git Bash on Windows)
  5. Make sure to activate your conda virtual environment so you have the right version of Python and all of the necessary packages. On a mac or in Git Bash on Windows, typeconda activate learn-env. (If youhave to use the conda shell on windows, typeactivate learn-env instead).
  6. Clone (download) the files to your hard drive by typinggit clone and then pasting the URL of your repo you saved in step 3.
  7. Typecd followed by the name of the directory you just created (running thels command will show you the name of the directory you downloaded)
  8. Run thejupyter notebook command to start up Jupyter, and in the browser window that opens, navigate to and click on theindex.ipynb notebook.

Instructions

Assign the below variablenumber to the number42 by replacingNone with42.

number=Nonenumber

Next, like the above, reassign theflatiron_mantra variable with the string"Change Things" (make sure to include the double quotes!)

flatiron_mantra=Noneflatiron_mantra

Add a new markdown cell below this one and type### This is a new header

Now add a new code cell below this one and write whatever code you want to write.

As you can see, this works just the same as editing Jupyter notebooks using cloud tools, only now it's on your computer.

Summary

Great work! We are well on our way to mastering Jupyter notebooks! We reviewed using the command line andgit clone, running cells, and checking our outputs.

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors3

  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp