Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Double-click on a file in Spyder needs to launch Spyder-Notebook plugin to open .ipynb files (like a NBopen equivalent) or "Open With..." Spyder-Notebook option in File Explorer widget #367

Open
richlysakowski opened this issue Jun 19, 2021 · 1 comment

Comments

@richlysakowski
Copy link

Description of your problem

First of all I want to say I LOVE the Spyder plugins because now I don't have to run Notebooks in Chrome, Firefox or anywhere else, I can stay in the Awesome Spyder, the simplest tool for learning and professional hacking with Python!

ISSUE: When I am in Spyder with the Spyder-Notebook plugin installed and enabled, if I double-click on a .ipynb file displayed in the Spyder Files tree widget, then Spyder should launch the Notebook Server automatically and open the notebook file in the Notebook Plugin inside Spyder.

The Spyder-Notebook plugin's menu system is an unexpected menu location, making Spyder-Notebook appear more like a PyQt wrapper hack. Is there a way to better integrate the Spyder-Notebook plugin with the Spyder Menu system so that it recognizes .ipynb files and launches the appropriate editors and viewers?

I want to Spyder to recognize .ipynb files from all locations within Spyder (the IDE's main "File... Open..." menu and the Spyder Files plugin) and open Spyder-Notebook by default.

At a minimum, we need a right-click "Open With Notebook..." menu in the File Explorer tree to launch a selected file(s).

What steps will reproduce the problem?

  1. Double click on a file in File Spyder Explorer
  2. Right-Click and select Open on a file selected in File Explorer

**What is the expected output?

It should open Spyder-Notebook

What do you see instead?**

A text file editor that allows me to hack (and corrupt) the JSON text in the .ipynb file. This is confusing to newbies that I train.

image

Versions and main components

  • Spyder Version: 4.2.5
  • Python Version: 3.7.8 64-bit
  • Qt Version: 5.9.6
  • PyQt Version: 5.9.2
  • Notebook Version: SPYDER-NOTEBOOK v0.3.2 (spyder-ide/noarch)
  • Operating system: Windows 10
@ccordoba12 ccordoba12 changed the title double-click on a file in Spyder needs to launch Spyder-Notebook plugin to open .ipynb files (like a NBopen equivalent) or "Open With..." Spyder-Notebook option in File Explorer widget Double-click on a file in Spyder needs to launch Spyder-Notebook plugin to open .ipynb files (like a NBopen equivalent) or "Open With..." Spyder-Notebook option in File Explorer widget Jun 20, 2021
@ccordoba12
Copy link
Member

Hey @richdevboston, thanks for reporting. You said

First of all I want to say I LOVE the Spyder plugins because now I don't have to run Notebooks in Chrome, Firefox or anywhere else, I can stay in the Awesome Spyder, the simplest tool for learning and professional hacking with Python!

Thanks a lot for your kind words! We really appreciate comments like yours.

ISSUE: When I am in Spyder with the Spyder-Notebook plugin installed and enabled, if I double-click on a .ipynb file displayed in the Spyder Files tree widget, then Spyder should launch the Notebook Server automatically and open the notebook file in the Notebook Plugin inside Spyder.

We're aware of this issue and will try to fix it in a future release. We understand it's very counterintuitive to not be able to open notebooks directly in Spyder-notebook if it's installed. But providing that functionality could take us between six months to a year because it requires several changes on the Spyder side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants