Giter Site home page Giter Site logo

eaf-jupyter's People

Stargazers

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

Watchers

 avatar  avatar  avatar

Forkers

mackong yfccb

eaf-jupyter's Issues

Theme-Mode is not defined

EAF buffer information:

  File "/home/nbfields/.emacs.d/site-lisp/emacs-application-framework/core/utils.py", line 60, in on_signal_received
    self._func(obj, *args, **kwargs)
  File "/home/nbfields/.emacs.d/site-lisp/emacs-application-framework/eaf.py", line 170, in new_buffer
    self.create_buffer(buffer_id, url, module_path, arguments)
  File "/home/nbfields/.emacs.d/site-lisp/emacs-application-framework/eaf.py", line 187, in create_buffer
    app_buffer = module.AppBuffer(buffer_id, url, arguments)
  File "/home/nbfields/.emacs.d/site-lisp/emacs-application-framework/app/jupyter/buffer.py", line 41, in __init__
    self.add_widget(EafJupyterWidget(self.kernel,
  File "/home/nbfields/.emacs.d/site-lisp/emacs-application-framework/app/jupyter/buffer.py", line 69, in __init__
    (jupyter_dark_mode == "follow" and theme_mode == "dark"))
NameError: name 'theme_mode' is not defined
Traceback (most recent call last):
  File "/home/nbfields/.emacs.d/site-lisp/emacs-application-framework/core/utils.py", line 60, in on_signal_received
    self._func(obj, *args, **kwargs)
  File "/home/nbfields/.emacs.d/site-lisp/emacs-application-framework/eaf.py", line 250, in update_views
    view = View(self.buffer_dict[buffer_id], view_info)
KeyError: '6ee6-a5d2-dc00-6547-dc49-411b-c986'
Traceback (most recent call last):
  File "/home/nbfields/.emacs.d/site-lisp/emacs-application-framework/core/utils.py", line 60, in on_signal_received
    self._func(obj, *args, **kwargs)
  File "/home/nbfields/.emacs.d/site-lisp/emacs-application-framework/eaf.py", line 250, in update_views
    view = View(self.buffer_dict[buffer_id], view_info)
KeyError: '6ee6-a5d2-dc00-6547-dc49-411b-c986'

Describe the bug
Attempting to open the eaf Jupyter plugin results in the above error output and no opening of jupyter-qtconsole in or out of Emacs.

To Reproduce
type M-x eaf-open-jupyter followed by the python3 kernel.

Expected behavior

Jupyter would open and provide no error.

Versions (please complete the following info):

  • Distro and DE/WM: Ubuntu 20.04.3 LTS
  • Versions of Dependencies: qtconsole 5.2.0
  • M-x emacs-version: GNU Emacs 27.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0) of 2021-11-04

Additional context

I don't doubt that this is a mistake on my end and not an actual bug in EAF or any of its packages, but I also don't know how to resolve it.

support virtual environment

Thanks for the application,

I am currently using pyvenv to switch the virtual environment.

Is it possible to support virtual environment for eaf-jupyter?

can't work

when i type M-x eaf-open-jupyter, then in the minibuffer, it is displaying: [EAF/jupyter] Please install qtconsole first.
however, i have installed the package!
i type this in my Emacs's shell---pip list
then it tells me that i have installed qtconsole and its version is 5.0.2
what can i do for making this work?

Interaction with Emacs Python mode

Use Case
I would like to edit a Python script using Emacs' built-in Python mode and use eaf-jupyter console as the Python interpreter.

When using Emacs Python mode typically one launches a Python interpreter REPL using C-c C-p. There after it is possible to send blocks of code being edited to this REPL. For example C-c C-c sends the whole buffer. Is it possible to do the same using eaf-jupyter REPL.

Describe the solution you'd like
It would be very useful to be able to use eaf-jupyter as a replacement for the standard Python REPL built into Emacs (which is launched by C-c C-p). A suitable alternative workflow for eaf-jupyter would be

  • Launch eaf-open-jupyter
  • Open a Python script for editing
  • Use a key sequence to inform Emacs Python mode that it should use the eaf-jupyter console as the REPL.
  • Now C-c C-c sends the contents to of the Python script buffer to the eaf-jupyter for execution.

If this feature is already available, please do consider documenting it in the README or elsewhere.

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.