A Jupyter Notebook extension for submitting notebook files to Web-CAT.
- Python 3
- pip
- Jupyter Notebook
Follow these steps if you are running Jupyter Notebooks through Anaconda:
- conda install git pip
- pip install git+https://github.com/CSSPLICE/webcatjupyterplugin
- jupyter serverextension enable --py webcatjupyterplugin
- jupyter nbextension install --py webcatjupyterplugin
- jupyter nbextension enable --py webcatjupyterplugin
- Download the file env.sh or clone the repository and run the command below
- sh env.sh
You can skip the 7th and 8th steps and manually run the following commands:
- jupyter notebook --generate-config
- Add the following line at the end of ~/.jupyter/jupyter_notebook_config.py
- c.NotebookApp.disable_check_xsrf = True
If you are not using Anaconda, use the following commands:
- pip3 install git+https://github.com/CSSPLICE/webcatjupyterplugin
- jupyter serverextension enable --py webcatjupyterplugin
- jupyter nbextension install --py webcatjupyterplugin
- jupyter nbextension enable --py webcatjupyterplugin
- Download the file env.sh or clone the repository and run the command below
- sh env.sh
You can skip the 5th and 6th steps and manually run the following commands:
- jupyter notebook --generate-config
- Add the following line at the end of ~/.jupyter/jupyter_notebook_config.py
- c.NotebookApp.disable_check_xsrf = True
If you have Windows operating system, follow these steps:
- Install Anaconda
- Open Anaconda Prompt and run these commands:
- conda install git pip
- pip install git+https://github.com/CSSPLICE/webcatjupyterplugin
- jupyter serverextension enable --py webcatjupyterplugin
- jupyter nbextension install --py webcatjupyterplugin
- jupyter nbextension enable --py webcatjupyterplugin
- jupyter notebook --generate-config
This will generate a default config file and you will get the output like "Writing default config to: C:\Users\UserName\.jupyter\jupyter_notebook_config.py"
Run the following command but make sure to change the path to the ones returned by the above command
- echo c.NotebookApp.disable_check_xsrf = True >> C:\Users\UserName\.jupyter\jupyter_notebook_config.py
The Web-CAT assignment indetification parameters are fetched from the first cell. Paste the following comments in the first cell and change the values with your assignment parameters.
# Do not edit this cell
# course: 123
# a: Assignment 1
# d: VT