Comments (14)
That is never incorrect, though in some cases it is unnecessary. In notebook v5.3 (or maybe 5.4) they introduced a directory-based scheme for installing notebook extensions that made it possible to install them via setup.py. ipyevents is set up to do that now so it shouldn't (in the future) require any extra steps.
The situation in jupyterlab is a little better because they decided to make all extensions npm packages and to use node/npm to handle the extension installation (instead of iterating through a couple years of custom installation approaches like with notebooks).
from ipyevents.
Actually, this might be more serious than what I posted above. I think all keyboard key bindings for Ginga viewer are gone. I cannot use numeric keys to change zoom either.
from ipyevents.
Can you open the browser javascript console to see if there are any errors showing up there when you type into the widget?
from ipyevents.
I couldn't figure out how to save the log into plain text, so here is a screenshot.
from ipyevents.
Actually, when I pip install ipyevents==0.4.0
into my conda
environment, I get this same problem too! But it works when I do a conda install ipyevents
.
from ipyevents.
from ipyevents.
$ jupyter nbextension list
- Validating: ok
- Validating: ok
Known nbextensions:
config dir: C:\...\Miniconda3\envs\py37\etc\jupyter\nbconfig
notebook section
ipyevents/extension enabled
jupyter-js-widgets/extension enabled
Then I conda uninstall ipyevents
followed by pip install ipyevents
to pick up 0.4.1 (again). But jupyter nbextension install --sys-prefix ipyevents
fails.
Traceback (most recent call last):
File "C:\...\Miniconda3\envs\py37\Scripts\jupyter-nbextension-script.py", line 11, in <module>
load_entry_point('notebook==5.7.4', 'console_scripts', 'jupyter-nbextension')()
File "C:\...\Miniconda3\envs\py37\lib\site-packages\jupyter_core\application.py", line 266, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
File "C:\...\Miniconda3\envs\py37\lib\site-packages\traitlets\config\application.py", line 658, in launch_instance
app.start()
File "C:\...\Miniconda3\envs\py37\lib\site-packages\notebook\nbextensions.py", line 988, in start
super(NBExtensionApp, self).start()
File "C:\...\Miniconda3\envs\py37\lib\site-packages\jupyter_core\application.py", line 255, in start
self.subapp.start()
File "C:\...\Miniconda3\envs\py37\lib\site-packages\notebook\nbextensions.py", line 716, in start
self.install_extensions()
File "C:\...\Miniconda3\envs\py37\lib\site-packages\notebook\nbextensions.py", line 695, in install_extensions
**kwargs
File "C:\...\Miniconda3\envs\py37\lib\site-packages\notebook\nbextensions.py", line 199, in install_nbextension
_maybe_copy(src, full_dest, logger=logger)
File "C:\...\Miniconda3\envs\py37\lib\site-packages\notebook\nbextensions.py", line 1043, in _maybe_copy
if _should_copy(src, dest, logger=logger):
File "C:\...\Miniconda3\envs\py37\lib\site-packages\notebook\nbextensions.py", line 1019, in _should_copy
if os.stat(src).st_mtime - os.stat(dest).st_mtime > 1e-6:
FileNotFoundError: [WinError 2] The system cannot find the file specified: 'ipyevents'
from ipyevents.
My bad, I left out a an option:
jupyter nbextension install --py --sys-prefix ipyevents
I don't think that will fix it though, since the ipyevents extension is already listed as installed and enabled.
from ipyevents.
Does the demo notebook for ipyevents work for you?
from ipyevents.
I think jupyter nbextension install --py --sys-prefix ipyevents
fixed it. For lab, I also ran jupyter labextension install ipyevents
. Now it works. Magic. Thanks!
from ipyevents.
Seems like I've seen two or three different incantations for the jupyter nbextension install
command now (over the years), and it is a little difficult to remember which one is correct. @pllim, maybe we should double check that we have an up-to-date note somewhere in the ginga install docs that if you want to use the jupyterw
version this is what you have to do.
from ipyevents.
The instructions in ginga/examples/jupyter-notebook/Jupyter Widget Ideas.ipynb
said:
$ pip install ipyevents
$ jupyter nbextension enable --py --sys-prefix ipyevents
Is that still correct, @mwcraig ?
from ipyevents.
OK, I'll just leave it be for now then. Thanks for the clarifications!
from ipyevents.
Thanks, @mwcraig !
from ipyevents.
Related Issues (20)
- Events not working with jupyterlab 1.0.0 HOT 3
- Reset an event HOT 2
- provide event target information? HOT 4
- Support for JupyterLab 2.0 HOT 11
- Throttling? HOT 4
- Running ipyevents in Jupyter lab 2 HOT 20
- Cannot use input widgets whilst listening to keyboard events HOT 1
- Using ipyevents on a remote (jupyter notebook) server HOT 5
- Support for Mobile Browser HOT 2
- Jupyter Lab: Throttling causes keyboard events to continue propagating
- Failed binder build HOT 1
- package.json update needed for JupyterLab 3 compatibility, maybe HOT 6
- [email protected] cannot be found on CDN (unpkg.com) HOT 5
- How to obtain the coordinates of a click on the image when object_fit='contain'? HOT 1
- Compatible with Jupyter Hub ? HOT 9
- How to trigger an event? HOT 2
- Mousemove events not emitted after shift+mousedown with button 1 in Jupyter Lab HOT 4
- prevent_default_action does not work if wheel event HOT 2
- Examples fail on binder and local. Script error for "ipyevents"
- Optionally passing some events to browser
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ipyevents.