Bhishan Posted October 16, 2019 Share Posted October 16, 2019 I was trying to make a workflow to go one step up in jupyter notebook. When I print the output to the LARGE FONT the output is correct, I can paste the output to the Google Chrome and it works correctly. But when I use OPEN URL object, it opens the blank tab. I tried many times still it only opens the blank url. I have shared the workflow in github: https://github.com/bhishanpdl/Shared/blob/master/Alfred_questions/Jupyter Up.alfredworkflow?raw=true Question ---------------- How to make the workflow open the current jupyter notebook running in Google Chrome open a new tab with one step up ? Note: I have used too many Alfred objects, I was also wondering how can I do it only the Applescript workflow. Since I am unfamiliar with Applescript, I pipe the output of applescript to bash and then do all the work in python. If it can be done in applescript, instead of too many alfred objects it could be done in one or two objects. Thanks in advance. Link to comment
deanishe Posted October 16, 2019 Share Posted October 16, 2019 5 hours ago, Bhishan said: go one step up in jupyter notebook What does that mean? Link to comment
Bhishan Posted October 16, 2019 Author Share Posted October 16, 2019 @deanishe I have a url like: ``` http://localhost:8888/notebooks/Dropbox/Data_Science/Untitled.ipynb ``` I want to open the url: ``` http://localhost:8888/notebooks/Dropbox/Data_Science/ ``` Which excludes the last part after "/". When I copy paste this url, it works good in Chrome, but When I open using "OPEN URL" of Alfered, it opens blank tab. Link to comment
deanishe Posted October 17, 2019 Share Posted October 17, 2019 20 hours ago, Bhishan said: When I copy paste this url, it works good in Chrome, but When I open using "OPEN URL" of Alfered, it opens blank tab. Your workflow doesn't generate that URL, though. It removes all the slashes from the URL, so it isn't valid. Here is a version with fixed URL-manipulating logic. Bhishan 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now