Comments (3)
Oh, and since I would use the ability to open a relative path in the
deployment of my courses for my 200 students class starting next
Tuesday, I am eager to beta-test anything, or any suggestion of workaround :-)
from ipylab.
Thanks @nthiery for reporting.
So it looks like the docmanager:open
commands indeed takes a path relative to the JupyterLab root.
But since the kernel is decoupled and has access to the whole file system it could indeed be tricky to do this. Unless there is a way to retrieve the path of the JupyterLab root from the Python kernel, and then compute the relative path to the file before using the docmanager:open
command from Python.
from ipylab.
Thanks for the feedback!
Would it be complicated to extend the docmanager:open command in JupyterLab to also support relative paths? E.g. with some option "relative=True"?
Of course, from a user perspective it would be better to follow the standard convention: a path is absolute if it starts with '/'; but I can see that, depending on the history, this could be a problem for backward compatibility to change it at this stage.
from ipylab.
Related Issues (20)
- Convert notebook with ipylab HOT 2
- list_commands() not working HOT 3
- example not working HOT 5
- app.commands.execute("notebook:run-all-below") does not work if cell collapsed
- Vscode Jupyter Extension: Unable to find widget 'ipylab' version '^0.6.0' from configured widget sources.
- Initialise widgets without going through a notebook HOT 3
- Previous cell execution HOT 5
- Complete rest of Title API
- Args for commands? HOT 3
- Panel and SplitPanel do not always render initially HOT 9
- Removing panel
- Exposing Jupyter(Lab) Contents HOT 1
- Purpose and Use Cases for ipylab HOT 3
- Execute notebook programatically has different behavior from running it on a Jupyter Notebook UI
- Disable "save widget state automatically" via notebook command? HOT 3
- Support of notebooks in VS Code? HOT 3
- Best practice inserting code into next cell
- Adding menus? HOT 1
- Problem with split panel on Mac HOT 2
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 ipylab.