cvfosammmm / porto Goto Github PK
View Code? Open in Web Editor NEWEdit Jupyter notebooks on the desktop - written in Python with Gtk
Home Page: https://www.cvfosammmm.org/porto/
License: GNU General Public License v3.0
Edit Jupyter notebooks on the desktop - written in Python with Gtk
Home Page: https://www.cvfosammmm.org/porto/
License: GNU General Public License v3.0
Theres an option "Change language" but it
seems that there's actually no way to really change it.
I can choose only python while I had installed the rust kernel and anaconda navigator and jupyter lab/notebook can see it as an option for the notebooks.
Is it possible to make each notebook run in its directory? This would allow to use relative imports.
This is my attempt #16
The Delete Cell shortcut Ctrl-Backspace
does not work.
The only way to delete a cell that seems to work is to empty the cell of content entirely, and then Backspace
in that empty cell.
It would be very handy if when I opened the application it would just continue where I left it off previously.
At the moment, the application only ever starts with a fresh view and I need to re-open the notebook I was working on previously.
Hi, 👋
I am currently doing numerical analysis using OCaml and OCaml-Jupyter (https://akabe.github.io/ocaml-jupyter/) on Debian GNU/Linux.
However, I really want to use Porto. Since I can work with my Jupyter notebooks on the desktop, without opening the web browser.
I would therefore much benefit if Porto could support OCaml as Jupyter's web client does.
Thank you. 😊
Linux Mint Mate 20.3. I followed the apt-get command line instructions, then downloaded Porto from Mint Software Manager (v 0.0.2 Flatpak). When trying to open existing notebook, I receive an error message. Clicking on the popup presents another error message, both shown in the attached screenshot
.
Steps to reproduce:
Expected result:
Current result:
Hello,
I installed Porto 0.0.2 from flatpak on PopOS (Unbuntu) 20.04.
I created a notebook and started with import pandas as pd
It throws ModuleNotFoundError: No module named 'pandas'
(BTW, we should be able to select error message without right click)
I already have pandas (1.1.3 on python 3.8.3 in base environment (miniconda 4.9.2)).
Did I miss something?
Thank you :)
I would suggest to change some keyboard shortcuts to the same shortcuts the standard jupyter notebook supports.
The following shortcuts is how jupyter notebooks handle things:
Shift + Enter run the current cell, select below.
Ctrl + Enter run selected cells.
Alt + Enter run the current cell, insert below.
I think this would make it easier for people using both to not mix up things.
On Ubuntu 18.04, I want to use Porto for Python with Anaconda, but it uses the system Python. How to configure Porto to use my Anaconda installation. Thanks for all.
In my workflow i use separated "env" to each document, so i think, the option that we select different environment is very import.
Awesome project! Thank you for your work!
I intend to submit a number some suggestions/ feature requests. Please do not take them as criticism or homework.
To begin, being able to change the font sizes with Ctrl-+
/ Ctrl--
would be great!
The button on the top left allows us to quickly open recently used notebooks, but it is only accessible with the mouse.
It would be very handy if one could just hit a keyboard shortcut, say Ctrl+Shift+O
, and have that list pop up with the first entry being highlighted and only one Enter
away from opening.
For example https://github.com/calebmadrigal/FourierTalkOSCON/blob/master/02_NatureOfWaves.ipynb
On this update flathub/org.cvfosammmm.Porto#3 (comment)
At the moment it seems to be non fatal but causes endless terminal output.
Traceback (most recent call last):
File "/app/bin/cell/result_revealer/result_revealer_presenter.py", line 97, in result_on_scroll
adjustment = self.notebook.view.get_vadjustment()
AttributeError: 'CodeResultRevealerPresenter' object has no attribute 'notebook'
Would be great if the mode of the current cell could be changed on the fly.
This would be especially useful after you've Ctrl+Enter
-ed to execute the current cell, but now you actually want a Markdown cell instead of a Code one.
I am using Porto installed as a flatpak from flathub. I have not tried the manual install.
If I try to import the pandas module, I get the message:
: No module named 'pandas'
When trying to install pandas with pip or pip3, I get:
�[33mWARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f6e2d3dab50>: Failed to establish a new connection: [Errno -3] Falha temporário na resolução de nome')': /simple/pandas/�[0m �[33mWARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f6e2d3daa00>: Failed to establish a new connection: [Errno -3] Falha temporário na resolução de nome')': /simple/pandas/�[0m �[33mWARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f6e2d3dad60>: Failed to establish a new connection: [Errno -3] Falha temporário na resolução de nome')': /simple/pandas/�[0m �[33mWARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f6e2d3dadf0>: Failed to establish a new connection: [Errno -3] Falha temporário na resolução de nome')': /simple/pandas/�[0m �[33mWARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f6e2d3c2550>: Failed to establish a new connection: [Errno -3] Falha temporário na resolução de nome')': /simple/pandas/�[0m �[31mERROR: Could not find a version that satisfies the requirement pandas (from versions: none)�[0m �[31mERROR: No matching distribution found for pandas�[0m
Thanks for the wonderful work! I'm a huge fan of Porto!
open:
Traceback (most recent call last):
File "/home/jayvdb/projects/jupyter/Porto/workspace/workspace_controller.py", line 65, in on_open_action
pathname = ServiceLocator.get_dialog('open_notebook').run()
File "/home/jayvdb/projects/jupyter/Porto/dialogs/open_notebook/open_notebook.py", line 35, in run
self.setup()
File "/home/jayvdb/projects/jupyter/Porto/dialogs/open_notebook/open_notebook.py", line 49, in setup
for widget in self.view.get_header_bar().get_children():
AttributeError: 'NoneType' object has no attribute 'get_children'
new:
Traceback (most recent call last):
File "/home/jayvdb/projects/jupyter/Porto/workspace/workspace_controller.py", line 84, in on_create_action
parameters = ServiceLocator.get_dialog('create_notebook').run()
File "/home/jayvdb/projects/jupyter/Porto/dialogs/create_notebook/create_notebook.py", line 43, in run
self.setup()
File "/home/jayvdb/projects/jupyter/Porto/dialogs/create_notebook/create_notebook.py", line 86, in setup
icon.set_margin_left(0)
AttributeError: 'NoneType' object has no attribute 'set_margin_left'
Dear devs,
thanks for those beautiful softwares ! (I discovered Setzer two days ago and I switched to it ! )
I am a JupyterLab user too. I wanted to use it in my usual Anaconda context. I tried to run it in a anaconda terminal session (working with Debian 10 Bullseye). My Anaconda contains of course a fully working JupyterLab install.
I understood some packages missed, thus I added :
conda install -c conda-forge pygobject
conda install -c conda-forge gtk3
which helped a few (the displayed error changes ^^)
Now I get a Webkit error :
(base) root@DebianMike:~/porto# python3 __main__.py
Traceback (most recent call last):
File "__main__.py", line 26, in <module>
from workspace.workspace import Workspace
File "/root/porto/workspace/workspace.py", line 18, in <module>
import workspace.workspace_presenter as workspace_presenter
File "/root/porto/workspace/workspace_presenter.py", line 23, in <module>
from app.service_locator import ServiceLocator
File "/root/porto/app/service_locator.py", line 20, in <module>
import result_factory.result_factory as result_factory
File "/root/porto/result_factory/result_factory.py", line 20, in <module>
from result_factory.result_html.result_html import ResultHtml
File "/root/porto/result_factory/result_html/result_html.py", line 21, in <module>
gi.require_version('WebKit2', '4.0')
File "/opt/anaconda3/lib/python3.8/site-packages/gi/__init__.py", line 126, in require_version
raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace WebKit2 not available
I tried to add :
conda install -c anaconda webkitgtk-cos6-x86_64
as well as :
apt install gir1.2-webkit2-4.0
and it still does not work. Any idea ?
Thanks a lot !
Mike
Instead of creating another hidden directory in the home directory, it would be great if the config files were stored in a subdirectory of $XDG_CONFIG_HOME (usually ~/.config/
)
OS: Fedora Silverblue 32
PS.: Thanks for a great app. It made me finally try out Jupyter!
Jupyter notebooks can export to PDF, HTML, etc.
Will that also be available here?
See JessicaTegner/pypandoc#257
Due to this, running notebooks like https://github.com/calebmadrigal/FourierTalkOSCON/blob/master/03_FourierTransform.ipynb fails with:
Traceback (most recent call last):
File "/app/bin/workspace/workspace_controller.py", line 72, in on_open_action
notebook.load_from_disk()
File "/app/bin/notebook/notebook.py", line 197, in load_from_disk
new_cell.evaluate_now()
File "/app/bin/cell/cell.py", line 159, in evaluate_now
self.change_state('ready_for_evaluation_quickly_please')
File "/app/bin/cell/cell.py", line 163, in change_state
self.add_change_code('cell_state_change', self.state)
File "/app/bin/helpers/observable.py", line 32, in add_change_code
observer.change_notification(change_code, self, parameter)
File "/app/bin/notebook/notebook_evaluator.py", line 76, in change_notification
result_blob = backend_markdown.evaluate_markdown(cell.get_all_text())
File "/app/bin/notebook/backend/backend_markdown.py", line 40, in evaluate_markdown
part = pypandoc.convert('$' + part + '$',
AttributeError: module 'pypandoc' has no attribute 'convert'
on this update flathub/org.cvfosammmm.Porto#3 (comment)
I can pin the version to <1.8 there for a temporary fix, but this should be fixed here.
https://developer.gnome.org/gtk3/stable/gtk3-GtkFileChooserNative.html
The Filechooser Portal allows to dynamically grant access to files and folders to users rather than hard-coding filesystem access.
The primary benefit here is tighter sandboxing and better desktop integration.
Currently there is no visual indication of the kind of cell one is working in.
Even if it is deemed not necessary and aesthetically "cluttered" to have icons for every cell, it would be really helpful to know what a cell expects from me when it is empty, and especially if I want to change its Mode.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.