Jupyter Notebook is an open-source web application that allows you to create and share documents that contain live code, equations, visualizations, and narrative text. It is a powerful tool for data analysis, visualization, and exploration. The extension enables scientific collaboration in a safe and open manner by providing researchers and scientists with a method of obtaining proof of code execution and timestamping as an NFT on the Bloxberg blockhain.
You would need the following to successfully run the EC Jupyter Notebook Extension
Jupyter Notebook
Jupyter Notebook nbextensions
Desktop version of Linux (recommended) or Windows OS
Metamask addon
Internet Browser (e.g. Firefox)
Step by step instructions on how to install a linux distro with a desktop environment are widely available on the internet.
Your desktop Linux distribution should come with an internet browser like Firefox or Chromium. Install the MetaMask addon from the sources below:
- Firefox: https://addons.mozilla.org/en-GB/firefox/addon/ether-metamask/
- Chrome, Chromium, Brave, Opera, Edge: https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn?hl=en
Follow the on screen instructions to create a new or restore an existing wallet
Afterwards, you will have to add the Bloxberg blockchain to MetaMask as shown in the below documentation
Please visit https://faucet.bloxberg.org to request bergs (cryptocurrency used to request the task execution)
We need to install pip first, please open a console and type the following command:
sudo apt install pip -y
Then, we can continue to install jupyter notebook. Type in the same console:
pip install notebook==6.5.4
And then we have to install the nbextensions by using the command below:
pip install jupyter_contrib_nbextensions
Now, we are ready to clone the repository with our jupyter notebook addon in our home folder
cd && git clone https://github.com/ethernity-cloud/etny-jupyter-notebook-extension.git
cd && rm -rf etny-jupyter-notebook-extension/.git
cp -R etny-jupyter-notebook-extension $HOME/.local/lib/python3.10/site-packages/jupyter_contrib_nbextensions/nbextensions/
jupyter contrib nbextension install --user
jupyter notebook
jupyter nbextension install ./etny-jupyter-notebook-extension
jupyter nbextension enable etny-jupyter-notebook-extension/main
We have to type our code which needs to be executed on the Ethernity Cloud ecosystem in the first cell of Jupyter Notebook.
A video on how it works will be made available soon
jupyter nbextension install ./etny-jupyter-notebook-extension jupyter nbextension enable etny-jupyter-notebook-extension/main