Coder Social home page Coder Social logo

apeworx / ape-notebook Goto Github PK

View Code? Open in Web Editor NEW
18.0 18.0 8.0 31 KB

Launch a Jupyter Notebook using the Ape Framework

Home Page: https://www.apeworx.io/

License: Apache License 2.0

Python 70.66% Jupyter Notebook 29.34%
ape apeworx jupiter-notebook jupyter-notebook python3

ape-notebook's People

Contributors

dtdang avatar fmrmf avatar fubuloubu avatar johnson2427 avatar notpeopling2day avatar wakamex avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ape-notebook's Issues

Override Ape Console with current Virtual Environment

Overview

Give the user the ability to install all 3rd party packages and Ape plugins, then run ape notebook and it takes them directly to a Jupyter Notebook with an Ape Kernel instead of a Python3 Kernel

Specification

The person installs all 3rd party packages, and installs all plugins they want to use. Then runs the command ape notebook --network:to:use to create a kernel from the individual's virtual environment and with the network they want to use

Dependencies

None

Restrict to `notebook>=6.5.2,<7` [APE-1309]

Environment information

  • ape and plugin versions:
$ ape --version
0.6.17

$ ape plugins list
Installed Plugins:
  alchemy      0.6.2
  solidity     0.6.8
  etherscan    0.6.9
  notebook     0.6.0a1
  foundry      0.6.14
  risk         0.1.0a4
  • Python Version: Python 3.9.6
  • OS: macOS

What went wrong?

Running ape notebook fails with

$ ape notebook
WARNING: Unable to load CLI endpoint for plugin 'ape_notebook'
        ModuleNotFoundError: No module named 'notebook.notebookapp'
        (Use `--verbosity DEBUG` to see full stack-trace)
Usage: ape [OPTIONS] COMMAND [ARGS]...
Try 'ape -h' for help.

Error: No such command 'notebook'.

as ape-notebook will use the latest version of notebook for the depenendency

$ pip list
notebook                   7.0.2

given setup.py doesn't restrict to < 7.

install_requires=[
   "notebook>=6.5.2",
   ...
]

How can it be fixed?

Quick fix would be in setup.py

install_requires=[
   "notebook>=6.5.2,<7",
   ...
]

or updating plugin to use Jupyter notebook>=7,<8.

Override the IPython Kernel in Jupyter Notebook

Overview

We currently only have Python3's kernel when we start a new Jupyter Notebook.
We want to be able to override this Kernel with multiple options (ethereum:mainnet network, etc) and have the ape console availabe

Specification

I believe I have to use ipykernel to do this, but there is more research that has to be done here

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.