GithubHelp home page GithubHelp logo

shoebot / jupyter-shoebot Goto Github PK

View Code? Open in Web Editor NEW
2.0 6.0 1.0 150 KB

Jupyter kernel for running Shoebot scripts

License: GNU General Public License v3.0

Jupyter Notebook 97.68% Python 2.26% Shell 0.06%

jupyter-shoebot's Issues

jupyter kernelspec install shoebot_kernel --sys-prefix did not work for me

Following the docs at https://docs.shoebot.net/advanced.html#running-in-jupyter

jupyter kernelspec install shoebot_kernel --sys-prefix

[Errno 13] Permission denied: '/usr/share/jupyter'
Perhaps you want to install with `sudo` or `--user`?

then with sudo

Traceback (most recent call last):
  File "/home/villares/.local/bin/jupyter", line 5, in <module>
    from jupyter_core.command import main
ModuleNotFoundError: No module named 'jupyter_core'

I'm running on a conda environment

Doesn't work in binder

(Possibly locally too).
Running the cells resulted in no output.

This needs some CI, so we know that it still works.

It could probably do with being linked from shoebot proper (have to admit I forgot that this is a thing, and it would have been handy for test).

Add clearer tracebacks

Right now we have

Traceback (most recent call last):
  File "shoebot_kernel/kernel.py", line 36, in do_execute
    bot.run(code, break_on_error=True)
  File "/home/rlafuente/repos/python-libs/shoebot/shoebot/grammar/grammar.py", line 240, in run
    self._run_frame(executor, limit=frame_limiter, iteration=iteration)
  File "/home/rlafuente/repos/python-libs/shoebot/shoebot/grammar/grammar.py", line 148, in _run_frame
    executor.run()
  File "/home/rlafuente/repos/python-libs/shoebot/shoebot/grammar/livecode.py", line 115, in run
    self.do_exec(self.known_good, self.ns)
  File "/home/rlafuente/repos/python-libs/shoebot/shoebot/grammar/livecode.py", line 82, in do_exec
    exec source in ns
  File "<string>", line 8, in <module>
NameError: name 'red' is not defined

Only the last 2 lines are relevant, and we're also missing context to make it clear which line is problematic.

Setup doesn't work

I think the default setup that jupyter-pip suggests doesn't work (jupyter-cairo is also broken).

pip doesn't provide a stable api, so I guess it's not too surprising the pip.main doesn't work... have a vague memory of looking at it and thinking ๐Ÿค” in jupyter-cairo.

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.