Snippets Collections
<div style="background-color:rgb(250,250,250); padding:30px;box-shadow:0 1px 1px rgba(0, 0, 0, 0.2);">
    <p style="font-family:Helvetica;font-size:15px;font-weight:bold">
       Text....
    </p>
</div>
<div style="background-color:#1abc9c; padding:1px 20px 20px 20px; border-radius:5px;box-shadow: rgba(0, 0, 0, 0.25) 0px 0.0625em 0.0625em, rgba(0, 0, 0, 0.25) 0px 0.125em 0.5em, rgba(255, 255, 255, 0.1) 0px 0px 0px 1px inset;">
    <h1 style="font-family: 'Lato', sans-serif;color:white;padding-left:10px;font-size:50px">
        Heading
    </h1>
</div>

<div class="alert alert-block alert-info" style="border-radius:8px; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;">
    <b>&#9432; Note<br /></b> Use blue boxes (alert-info) for tips and notes.
    If it’s a note, you don’t have to include the word “Note”.
</div>
<div class="alert alert-block alert-warning" style="border-radius:8px; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;">
    <b>!&#x20DD; Important<br /></b> Use yellow boxes if you to underline important things.
</div>
<div class="alert alert-block alert-danger" style="border-radius:8px; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;">
    <b>&#9888; Warning<br /></b> In general, avoid the red boxes. These should only be
    used for actions that might cause data loss or another major issue.
</div>
<div class="alert alert-block alert-success" style="border-radius:8px; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;">
    <b>&#10149; See also<br /></b> Use green boxes to link to other documentation sources.
</div>
conda create -n my-conda-env                               # creates new virtual env
conda activate my-conda-env                                # activate environment in terminal
conda install ipykernel                                    # install Python kernel in new conda env
ipython kernel install --user --name=my-conda-env-kernel   # configure Jupyter to use Python kernel
jupyter notebook                                           # run jupyter from system
(firstEnv)
>>conda install -c anaconda ipykernel
>>python -m ipykernel install --user --name=firstEnv
#!/usr/bin/env python3

from multiprocessing import Pool

def run(task):
  # Do something with task here
    print("Handling {}".format(task))

if __name__ == "__main__":
  tasks = ['task1', 'task2', 'task3']
  # Create a pool of specific number of CPUs
  p = Pool(len(tasks))
  # Start each task within the pool
  p.map(run, tasks)
# this line will write the code below into a Python script called script.py
%%writefile script.py
star

Thu Dec 09 2021 09:47:17 GMT+0000 (UTC)

#jupyter #markdown
star

Thu Dec 09 2021 09:46:17 GMT+0000 (UTC)

#jupyter #markdown
star

Wed Nov 10 2021 10:32:25 GMT+0000 (UTC)

#html #jupyter #markdown
star

Wed Nov 10 2021 10:32:00 GMT+0000 (UTC)

#html #jupyter #markdown
star

Wed Nov 10 2021 10:31:18 GMT+0000 (UTC)

#html #jupyter #markdown
star

Wed Nov 10 2021 10:30:02 GMT+0000 (UTC)

#html #jupyter #markdown
star

Wed May 12 2021 00:33:13 GMT+0000 (UTC)

#jupyter #anaconda
star

Fri Apr 02 2021 06:41:25 GMT+0000 (UTC)

#python #jupyter

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension