Coder Social home page Coder Social logo

porto's People

Contributors

cvfosammmm avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

porto's Issues

Switch from Python to other Language

Theres an option "Change language" but itseems 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.

Delete cell shortcut does not work

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.

Continue with the last session

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.

unable to open existing notebook

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
porto
.

Missing installation steps?

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 :)

Change Keyboard shortcuts for cells

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.

set external environments

In my workflow i use separated "env" to each document, so i think, the option that we select different environment is very import.

Zoom levels

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!

Shortcut to open recent notebooks

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.

Scrolling on a notebook shows AttributeError: 'CodeResultRevealerPresenter' object has no attribute 'notebook'

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'

Change mode of current cell.

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.

Problem installing pandas using pip and pip3 (flatpak install)

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 and new fail

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'

Want to use Porto in Anaconda Install ?

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

Use $XDG_CONFIG_HOME for configs files

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!

pypandoc.convert is no longer available in pypandoc 1.8

part = pypandoc.convert('$' + part + '$',

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.

Display the Mode of the current cell.

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.

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.