Django==2.0, virtualenv==15.1.0, virtualenvwrapper-win==1.2.4
- You're using a separate
virtual environmentto run each django project. - You're on
windows. I'm onwindows 10specifically.
| from collections import OrderedDict | |
| from operator import itemgetter | |
| import pprint | |
| import requests | |
| import bs4 | |
| import json | |
| import time | |
| import re | |
| # returns a BS object of a webpage |
I assume here that you have python installed in your system. Or perhaps you have a package manager such as Anaconda or Canopy and that you have your path variables setup correctly. If you don't then head over to any of these pages and download a python installation to start with. I recommend Anaconda personnally. But use any one of your choice
Warning these files are usually large, so you may want to use a non-metered connection.
Create a python virtual environment using either pipenv or virtualenv
Open up cmd.exe, activate the virtual environment and issue the following to commands
pipenv install jupyter
pipenv install ipykernel
To create the custom ipython kernel, issue the following commands
javascript let salute = (age) => { let showAge = (name) => { console.log(`Welcome ${name}`) console.log(`Your age is ${age}`) } return showAge } s = salute(16) // returns showAge function s("chidi") console.log(s) // returns the showAge function (name) => { console.log("Welcome " + name) console.log("Your age is " + age) } ## Output Welcome chidi Your age is 16 ## Python Code python def salute(age): def show_age(name): print("Welcome ", name) print("Your age is ", age) return show_age # Call the function s = salute(16) # returns the show_age function s("chidi") # pass the my name argument to the show_age function ## Output Welcome chidi Your age is 16| // Learning styles | |
| const learningStyles = [ | |
| { | |
| social: [ | |
| 'Learn by being told—through lessons, lectures, presentations.', | |
| 'Learn by asking someone what you want to know.', | |
| 'Learn by working cooperatively with others as a team.', | |
| 'Learn by teaching someone else.', | |
| 'Learn by working or studying with a mentor.', |