├── .gitignore ├── README.md ├── Untitled.ipynb ├── css_js.ipynb ├── data_analytics_basics.ipynb ├── enumerate.ipynb ├── exp.ipynb ├── format.ipynb ├── linear.ipynb ├── questions.ipynb ├── range.ipynb ├── reddit_sentiment.ipynb ├── style.css ├── style2.css ├── style3.css ├── supreme_bot ├── .ipynb_checkpoints │ └── Bot-checkpoint.ipynb ├── Bot.ipynb ├── csrf.png ├── form_data.png ├── form_data_close.png ├── found_element.png ├── header_example.png ├── remove_cart_request_incognito.png ├── request_incognito.png ├── response_incognito.png └── set_cookie_close.png └── time.ipynb /.gitignore: -------------------------------------------------------------------------------- 1 | .ipynb_checkpoints/* 2 | .DS_Store 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # RGupyter 2 | Real time experiments with JS/CSS/HTML in JupyterLab with help from IPython 3 | 4 | # Open up any file and explore 5 | -------------------------------------------------------------------------------- /Untitled.ipynb: -------------------------------------------------------------------------------- 1 | { 2 | "cells": [ 3 | { 4 | "cell_type": "code", 5 | "execution_count": null, 6 | "metadata": {}, 7 | "outputs": [], 8 | "source": [] 9 | } 10 | ], 11 | "metadata": { 12 | "kernelspec": { 13 | "display_name": "Python 3", 14 | "language": "python", 15 | "name": "python3" 16 | }, 17 | "language_info": { 18 | "codemirror_mode": { 19 | "name": "ipython", 20 | "version": 3 21 | }, 22 | "file_extension": ".py", 23 | "mimetype": "text/x-python", 24 | "name": "python", 25 | "nbconvert_exporter": "python", 26 | "pygments_lexer": "ipython3", 27 | "version": "3.6.6" 28 | } 29 | }, 30 | "nbformat": 4, 31 | "nbformat_minor": 2 32 | } 33 | -------------------------------------------------------------------------------- /css_js.ipynb: -------------------------------------------------------------------------------- 1 | { 2 | "cells": [ 3 | { 4 | "cell_type": "markdown", 5 | "metadata": {}, 6 | "source": [ 7 | "# JS/CSS/HTML with JupyterLab \n", 8 | "# (DON'T RUN CODE UNTIL YOU READ ALL OF MY TEXT)\n", 9 | "\n", 10 | "Real time commit history of my growth \n", 11 | "of applying JS/CSS/HTML inside JupyterLab using tools \n", 12 | "IPython, widgets, and extensions.\n", 13 | "\n", 14 | "Friday, October 19th:\n", 15 | "\n", 16 | "I was playing around with css values and ran into an interesting problem.\n", 17 | "I wanted to use the html in markdown cell with custom styling. I was only having success with over riding the styles of common tag names in my case p and div\n", 18 | "\n", 19 | "I was trying random letters and words like rg to see if I could bind the style from style.css to an uncommon tag name, but none of those alternatives were working, so I stuck with common tag names" 20 | ] 21 | }, 22 | { 23 | "cell_type": "markdown", 24 | "metadata": {}, 25 | "source": [ 26 | "### Contents of style.css \n", 27 | "```css\n", 28 | "```" 40 | ] 41 | }, 42 | { 43 | "cell_type": "markdown", 44 | "metadata": {}, 45 | "source": [ 46 | "The style tags have to appear somewhere to use this file opening HTML() way. \n", 47 | "Either in the .css file or using a string concatenation \n", 48 | "```python\n", 49 | "HTML('')\n", 50 | "```" 51 | ] 52 | }, 53 | { 54 | "cell_type": "markdown", 55 | "metadata": {}, 56 | "source": [ 57 | "### Dependencies" 58 | ] 59 | }, 60 | { 61 | "cell_type": "code", 62 | "execution_count": 57, 63 | "metadata": {}, 64 | "outputs": [], 65 | "source": [ 66 | "from IPython.core.display import HTML\n", 67 | "from jupyter_core.paths import jupyter_config_dir\n", 68 | "import os.path" 69 | ] 70 | }, 71 | { 72 | "cell_type": "markdown", 73 | "metadata": {}, 74 | "source": [ 75 | "## CSS importing" 76 | ] 77 | }, 78 | { 79 | "cell_type": "code", 80 | "execution_count": 58, 81 | "metadata": {}, 82 | "outputs": [ 83 | { 84 | "data": { 85 | "text/html": [ 86 | "" 98 | ], 99 | "text/plain": [ 100 | "" 101 | ] 102 | }, 103 | "execution_count": 58, 104 | "metadata": {}, 105 | "output_type": "execute_result" 106 | } 107 | ], 108 | "source": [ 109 | "# This allows for my own custom style.css page to take over\n", 110 | "# CSS styling for outputs and markdown\n", 111 | "# CSS rules can affect the notebook top menus – be careful changing