let salute = (age) => {
let showAge = (name) => {
console.log(`Welcome ${name}`)
console.log(`Your age is ${age}`)
}
return showAge
}| // 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.', |
-
Create a python virtual environment using either
pipenvorvirtualenv -
Open up
cmd.exe, activate the virtual environment and issue the following to commandspipenv install jupyterpipenv install ipykernel -
To create the custom
ipythonkernel, issue the following commands
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.
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.
How do you handle your django settings.py file properly so that development and production settings are kept clean, apart, and well-organized?
| 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 |